Cross Platform way to launch a system file or URL.
Alexander Lazarević
Alexander at Lazarevic.de
Wed Dec 8 21:51:43 UTC 2004
-----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-----
More information about the Squeak-dev
mailing list
|