On Feb 20, 2006, at 2:29 PM, Robert Carroll wrote:
I am hoping someone has a suggestion for a more reliable way to
point to the resources folder in a built application bundle.
Currently, I am using:
f=getfolderitem("").child("MyAppilcationName").child
("Contents").child(Resources")
This piece of code is redundant. It means the same thing as:
f = GetFolderItem("MyApplicationName").Child("Contents").Child
("Resources")
I see this pattern all over the place, but there's no reason to use it.
but this will obviously break, if the name of the application is
changed by the user. Is there a way to do this that doesn't rely on
the application name?
Sure: App.ExecutableFile will return the location of the executable.
If you know that you are building a bundled app, you can navigate
down a level using Parent and then up into the Resources directory
using Child.
Mars Saxman
REAL Software
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>