Get POSIX path to shell script

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

like so:
do shell script "mkdir " & quoted form of myPath

or put things before and after:
do shell script “mkdir " & quoted form of myPath & " blahblahblahcommands”

if your path is a standard colon delimted mac path:
do shell script "mkdir " & quoted form of (POSIX path of (myPath))

Hi,

as the shell script is executable, just pass the full path


set myPath to (current application's NSBundle's mainBundle()'s pathForResource_ofType_("myScript.sh", "")) as string
do shell script (quoted form of myPath)