automatically open .sh3d file on a Mac

This topic has been viewed 13113 times and has 27 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
buzzz
Posts: 54
Joined: Sun Jun 25, 2017 9:02 am
Country: FR

automatically open .sh3d file on a Mac

Post by buzzz »

Hi all,

When I double click on the .sh3D file on my mac, I would like that the file is automatically loaded into SW.

What is the correct approach ?

I see that in build.xml, there is a build option for:
ponderis3D-version-macosx-10.4-10.9.dmg

If I use this dmg installation, does it automatically configure the app and the association between .sh3D files and the app ?

Thx for help
buzzz
Posts: 54
Joined: Sun Jun 25, 2017 9:02 am
Country: FR

Re: automatically open .sh3d file on a Mac

Post by buzzz »

Lol... I just notice that the file name was incorrect :)

We can call that a "lapsus revelateur" :D
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: automatically open .sh3d file on a Mac

Post by Puybaret »

The associations between an application bundle and the files extensions is indicated in the [font=courier new]UTExportedTypeDeclarations[/font] section of its [font=courier new]Info.plist[/font] file.
Look at the one of Sweet Home 3D,, it's self-explanatory.
Emmanuel Puybaret, Sweet Home 3D creator
buzzz
Posts: 54
Joined: Sun Jun 25, 2017 9:02 am
Country: FR

Re: automatically open .sh3d file on a Mac

Post by buzzz »

I have to test this on my Mac.

can you tell me what version of java (I assume openjdk) needs to be installed for everything to work properly?
buzzz
Posts: 54
Joined: Sun Jun 25, 2017 9:02 am
Country: FR

Re: automatically open .sh3d file on a Mac

Post by buzzz »

Hi all,

I have to test the .app build these next days. Currently I have a mac with Ventura 13.6. Which version of java do you use for that ?

Thx for help
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: automatically open .sh3d file on a Mac

Post by Puybaret »

On macOS, Sweet Home 3D is bundled with Zulu 15.0.10 as indicated in its Ant project file.
Emmanuel Puybaret, Sweet Home 3D creator
buzzz
Posts: 54
Joined: Sun Jun 25, 2017 9:02 am
Country: FR

Re: automatically open .sh3d file on a Mac

Post by buzzz »

Thks Emmmanuel

Do I need to make an app build for each MacOS version ? 12 13 14 ?

I already notice that I have to build an intel plus arm version...
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: automatically open .sh3d file on a Mac

Post by Puybaret »

Bundling Zulu 15.0.10 with Sweet Home 3D makes it able to run on macOS from 10.9 to 14.
Emmanuel Puybaret, Sweet Home 3D creator
buzzz
Posts: 54
Joined: Sun Jun 25, 2017 9:02 am
Country: FR

Re: automatically open .sh3d file on a Mac

Post by buzzz »

Hi

On my PC with Oracle Java 15.0.2, when I build the officiel SW7.1 source, I obtain the following messages:

[echo] compiling Sweet Home 3D for Java 1.7 minimum version
[mkdir] Created dir: Desktop\SweetHome3D-7.1-src\build\classes
[javac] Desktop\SweetHome3D-7.1-src\build.xml:68: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 2 source files to Desktop\SweetHome3D-7.1-src\build\classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 7
[javac] warning: [options] source value 7 is obsolete and will be removed in a future release
[javac] warning: [options] target value 7 is obsolete and will be removed in a future release

But, on my mac (13.6), using Zulu 15.0.10 (Zulu 15.46), I obtain two errors:
[javac] error: source option 7 is no longer supported, Use 8 or later
[javac] error: Target option 7 is no longer supported, Use 8 or later

Any idea ?
buzzz
Posts: 54
Joined: Sun Jun 25, 2017 9:02 am
Country: FR

Re: automatically open .sh3d file on a Mac

Post by buzzz »

Finally I force compilation with source="1.8", lots of warning, but it works
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest