If you ask for the system version information you'll find os-x is 1000 or higher....
On Dec 8, 2004, at 1:51 PM, Alexander Lazarević wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bert Freudenberg schrieb:
| On Mac OS X you have the "open" command. Use FFI to implement the | system() C lib function, then call system('open | /path/to/my/file.txt'). You have to give a POSIX path. Works for | URLs, too. See "man open".
Interesting. So I could use this for ExternalWebBrowser to launch the browser on Mac OS X without the need to have the AppleScript package loaded. How do I distinguish wether the vm is running on Mac OS 9 or OS X by looking at platformname and platformSubtype?
Alex -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBt3dvYiF2wSTEZ9gRAuNdAKC9Y0UiP5iNEzVH7l7N29psA+E2wwCfW912 cEUvtjibYKbhp0pF1Wuke2o= =Drk3 -----END PGP SIGNATURE-----
-- ======================================================================== === John M. McIntosh johnmci@smalltalkconsulting.com 1-800-477-2659 Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ======================================================================== ===