Re: how to get the location of a program
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Apr 19, 2005, at 4:10 PM, w.o.b wrote: Hi, Is there a way in OS X to get the full path of a program where it's being executed? Are you using Cocoa, Carbon or something else? Can you better outline what you are attempting to do. -Shawn _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... You mean the working directory of the application?
From you later comments it sounds like you want the installed location of the executable... please clarify. In general you should not attempt to modify your application or files inside your applications bundle (assuming this is a bundle based application), for example you may not have write permissions to the directory that contains you application. Similar things can be said about the working directory... Mac OS X applications general ask for a file name and location before saving things. This email sent to site_archiver@lists.apple.com
participants (1)
-
Shawn Erickson