See the CFBundle section of the Core Foundation chapter of my declares book to see how to do it without hard-coded paths.

Charles Yeomans

On Jun 27, 2006, at 7:17 PM, Craig Hoyt wrote:

Thanks NP,

I learned something new... I had no idea that <app.executableFile> was available. I did stumble upon a solution of sorts. After thinking about it for a while, I realized that <f=GetFolderItem("") > returns the Parent of the Application or Bundle. So if I use <f=GetFolderItem("").Child("myApp.app").Child("Contents").Child ("myFile")>, this will work. This is a poor way to do this though because if the user changes the file name of the bundle it will fail. Your approach also relies on hard coded folderitems but works from the other direction and the likelihood of directories being renamed inside a bundle is minimal at best.

_______________________________________________
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>

Reply via email to