Modify

Opened 10 years ago

Closed 10 years ago

#10025 closed defect (fixed)

Double-clicking .osm file on Mac OS X doesn't open JOSM

Reported by: Stereo Owned by: team
Priority: normal Milestone: 14.06
Component: Core Version:
Keywords: mac osx Cc: Lesath, cquest, Klumbumbus

Description

Expected behaviour: JOSM should open the file as if it had been chosen through the file chooser dialog.
Actual behaviour: Error message saying: There is no application set to open the document “example.osm”.

Similarly, dragging a readable file to JOSM or typing 'open -a JOSM example.osm' should open the file.

For extra points, JOSM should also be able to open the file types that extra plug-ins support, for example .shp files from the Open Data plug-in.

This might be useful:

https://stackoverflow.com/questions/1575190/double-click-document-file-in-mac-os-x-to-open-java-application

Attachments (0)

Change History (17)

comment:1 by Don-vip, 10 years ago

Keywords: mac osx added; macosx removed

comment:2 by Don-vip, 10 years ago

In 7231/josm:

see #10025 - add bundledocument to Mac OSX package to register JOSM as .osm files editor

comment:3 by Don-vip, 10 years ago

Cc: cquest added
Owner: changed from team to Stereo
Status: newneedinfo

Could one of you try this package and tell me if opening .osm files with double-click works?

comment:4 by Lesath, 10 years ago

Hi Don-vip,

Lesath here. Yes it works partially on Mac. Double click on a *.osm opens JOSM, but JOSM does not load the file itself - I think this is the expected behavior for this enhancment. The open command works in the same way as the double click on the filename.

I don't know if it is possible, but the same fix for compressed data like "*.osm.bz2" or "*.osm.zip" would be a nice-to-have!

in reply to:  4 comment:5 by Don-vip, 10 years ago

Replying to Lesath:

Yes it works partially on Mac. Double click on a *.osm opens JOSM, but JOSM does not load the file itself - I think this is the expected behavior for this enhancment. The open command works in the same way as the double click on the filename.

Thanks for testing. I expected JOSM to open the file, I will look into it.

same fix for compressed data like "*.osm.bz2" or "*.osm.zip" would be a nice-to-have!

Easy to add.

comment:7 by Don-vip, 10 years ago

Owner: changed from Stereo to team
Status: needinfonew

comment:8 by Don-vip, 10 years ago

In 7253/josm:

see #10025 - open .osm files with double-click on OSX

comment:9 by Don-vip, 10 years ago

Can you try again? It should work now.

comment:10 by Lesath, 10 years ago

Sorry no. It seems to work in the same way as above - it opens JOSM, but it won't load the file. I will have a further look into the debugger today evening.

comment:11 by Don-vip, 10 years ago

Is there any of these warnings?

Main.warn("Failed to register with OSX: " + ex);
Main.warn("Failed to access open files event: " + ex);

comment:12 by Don-vip, 10 years ago

Milestone: 14.06

comment:13 by Don-vip, 10 years ago

Hi guys, please, I need some help here as we do not have any Mac for testing :) Is there any warning on console when launching JOSM package from here?

comment:14 by Klumbumbus, 10 years ago

Cc: Klumbumbus added

comment:15 by Don-vip, 10 years ago

In 7283/josm:

see #10025 - add debug/warn messages

comment:16 by Don-vip, 10 years ago

Maybe a Java bug (8043852) after all. Could one of you please attach a status report after JOSM is launched with double-click on an .osm file?

comment:17 by Don-vip, 10 years ago

Resolution: fixed
Status: newclosed

In 7287/josm:

fix #10025 - File registration with Mac OSX (many thanks to Stereo and cquest for their help)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.