Guys,
I’m building a building a Cocoa-Applescript application. I have a shell script inside the ‘Resources’ folder that I need to execute. I want to get the POSIX path to my shell script so that I can cd into the folder and execute it. I have tried the following :
set myPath to (current application's NSBundle's mainBundle()'s pathForResource_ofType_("myScript.sh", "")) as string
display dialog myPath
On running , ‘myPath’ displays
I can extract the path from this , but I know there must be a way to get the path to my shell script.
Im running OSX 10.6.7