How do I get the path to package contents

Does anyone know how to do this?

Look up NSBundle. For example:

current application’s NSBundle’s mainBundle()'s pathForResource_ofType_(“Some pic”,“jpg”)

How about locating a folder? Also, I tried a script file which was placed into the package (not put there by xcode) and that didn’t work… Does the file have to be “officially” part of the xcode project for this to work?

I don’t now about the “officially” being of Xcode (I think not), but this code should return the path to the MyApp.app/Contents/-folder:

current application's NSBundle's mainBundle()'s bundlePath()'s stringByAppendingPathComponent_("Contents")

Hope it helps (and works),
ief2

Use pathRorResoruce_ofType_inDirectory_

Also, I tried a script file which was placed into the package (not put there by xcode) and that didn’t work… Does the file have to be “officially” part of the xcode project for this to work?

It does if you want to run it from Xcode.