I am using the following code in my Cocoa project to call a script I made. The script is in the same folder as the project and even shows up under the \"Resources\" folder i
add this line before [task launch]:
[task launch]
[task setLaunchPath:@"/bin/sh"];