Feature Requests item #3185057, was opened at 2011-02-17 12:01 Message generated for change (Tracker Item Submitted) made by adefusco You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=379136&aid=3185057&group_id=23629
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Jmol extensions Group: None Status: Open Priority: 5 Private: No Submitted By: Albert DeFusco (adefusco) Assigned to: Nicolas (nicove) Summary: Mac OS X APP (prototype provided) Initial Comment: I have included an AppleScript application called a "droplet" which allows Jmol to feel more like a native application on Mac OS X. This means that file types can be assigned to Jmol. An example of this is included in Jmol.app/Contents/Info.plist where each entry in CFBundleDocumentTypes has been exported by something else, but the exported types can be included directly in this Info.plist (e.g., org.jmol.state). The AppleScript (Jmol.app/Contents/Resources/main.scpt) works by directly running jmol using the "do shell script" command. This behaves identically to the previously supplied shell scripts. Alternatively, Jmol.jar (and the others) can be included directly into the Jmol.app directory without the need to have Jmol previously installed elsewhere. This means that Jmol.app can live anywhere on the file system and always know how to find the jar since AppleScript understands "path to me" as the absolute path to the Jmol.app directory at runtime. One thing to note is that when running, the droplet itself is not shown in the Dock. This is because Info.plist specifies <key>LSUIElement</key> <true/> I did this because the java instance also has a dock icon when running and I give it the Jmol icon with the flag "-Xdock:name=Jmol -Xdock:icon=path/to/jmol.icns" It is important to note that Jmol.app can be REPEATEDLY opened and a new java instance will appear in the dock. Note also that if Jmol.app is in the dock another Jmol icon for the java instance appears when Jmol.app is opened. How to open Jmol: 1. double-click Jmol.app 2. double-click a file whose type is included in CFBundleDocumentTypes and where Jmol is the default application 3. right-click a file and "open with..." 4. drag a file over the Jmol.app icon either in the Finder or the dock 5. in the Terminal run "open -a jmol somefile.ext" After one of the 5 steps above, the user can continue to use the Jmol open and save dialog boxes or drag a new file over an active Jmol window. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=379136&aid=3185057&group_id=23629 ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Jmol-developers mailing list Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers