I assume that /Applications/Utils/MyToolyou mean an application named "MyTool" in the "Utils" directory in the "Application" directory (this is actually the way to go /Applications/Utils/MyTools.app). In this case, you can get the directory where the application ( /Applications/Utils) is located , with the following bit of code:
NSString *appParentDirectory = [[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent];
source
share