Application path problem in OS X standalone

Jeanne A. E. DeVoto jeanne at runrev.com
Wed May 14 23:27:02 EDT 2003


At 7:52PM -0700 5/14/03, Howard Bornstein wrote:
>To set the defaultFolder, I first determine where the App lives. No
>problem in OS 9 and Windows. However, in OS X, when I determine where the
>App resides, I get some extra stuff appended to the path.
>
>OS 9: harddrive/path-info/app-directory
>OS X: harddrive/path-info/app-directory.app/Contents/MacOS

The problem is that a bundle is actually a folder (the Finder just presents
it as a file), so this is (as far as the filesystem is concerned) in fact
the folder where your application resides.

There's some info on this under "filename of stack" in the Transcript
Dictionary.

--
Jeanne A. E. DeVoto ~ jeanne at runrev.com
Runtime Revolution Limited - Software at the Speed of Thought
http://www.runrev.com/





More information about the use-livecode mailing list