Modify

Opened 5 years ago

Closed 5 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 Changed 5 years ago by Don-vip

Keywords: mac osx added; macosx removed

comment:2 Changed 5 years ago by Don-vip

In 7231/josm:

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

comment:3 Changed 5 years ago by Don-vip

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 Changed 5 years ago by Lesath

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!

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

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:6 Changed 5 years ago by Don-vip

comment:7 Changed 5 years ago by Don-vip

Owner: changed from Stereo to team
Status: needinfonew

comment:8 Changed 5 years ago by Don-vip

In 7253/josm:

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

comment:9 Changed 5 years ago by Don-vip

Can you try again? It should work now.

comment:10 Changed 5 years ago by Lesath

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 Changed 5 years ago by Don-vip

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 Changed 5 years ago by Don-vip

Milestone: 14.06

comment:13 Changed 5 years ago by Don-vip

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 Changed 5 years ago by Klumbumbus

Cc: Klumbumbus added

comment:15 Changed 5 years ago by Don-vip

In 7283/josm:

see #10025 - add debug/warn messages

comment:16 Changed 5 years ago by Don-vip

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 Changed 5 years ago by Don-vip

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.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.