On Jan 18, 2011, at 12:34 PM, Fco. Javier Modrego wrote: > May this is of some help, > I use to bundle the jar into double clickable mac app using the instructions > in http://www.devdaily.com/apple/mac/java-jar-bundler/ nevertheless this does > not solve the working dir issue. > I think that the working dir issue is related to the java code itself an its > interaction with the system variables, something of a more general nature, as > indicated in > http://www.devdaily.com/blog/post/java/how-determine-directory-java-application-run-from > May be someone with some acquaintance with java programming can test this... >
hi, my understanding is that Java does not use the native OS X operations for Open/Save dialogs. so, while there are several ways to address default Open/Save directories in native OSX apps, I believe you have to handle it from within a Java app. =( my solution has been to write a prefs file to the user's home dir, and to use java.util.prefs: <http://download.oracle.com/javase/1.4.2/docs/api/java/util/prefs/package-summary.html> but again, this is developer-side implementation, and requires that you either add code to the Jmol source or write a simple launcher app. sorry that is not really much help, Eric! tim >> >> >> Message: 2 >> Date: Sat, 15 Jan 2011 17:57:47 -0500 >> From: Eric Martz <[email protected]> >> Subject: [Jmol-users] Jmol.app default dir in OS X? >> To: [email protected] >> Message-ID: <[email protected]> >> Content-Type: text/plain; charset="us-ascii"; format=flowed >> >> Could someone please explain to me how, in OS X (I am using leopard), >> to most easily set the Jmol.app default directory? The only ways I >> have found are so cumbersome that I have ended up littering my >> directory tree with many copies of (different versions of) Jmol.app. >> I double click on Jmol.app in the directory that has the relevant >> scripts and PDB files. >> >> Ideally, I would like a button in Finder that would start Jmol.app, >> setting the current directory to the one current in Finder. "Open >> Terminal Here" is an application/droplet/script that does this for >> Terminal -- not sure if it could be modified to open Jmol.app. >> >> Second best would be a way to drag and drop, or copy and paste, a >> directory path that I have located in Finder. If I could easily copy >> that path to the clipboard, then I could paste it into the Jmol >> Script Console after typing "cd ". I don't know how to copy a path >> from Finder to the clipboard. >> >> Obviously, I don't want to have to hand-type the filepath into a Jmol >> cd command. >> >> Thanks! -Eric >> >> > > Dr. F.J. Modrego > Department of Inorganic Chemistry > Facultad de Ciencias > University of Zaragoza > 50009 ZARAGOZA > SPAIN > Tel <34>-976-762288 > Fax <34>-976-761187 > E-mail: [email protected] > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Jmol-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jmol-users ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

