Re: how to get the location of a program
Re: how to get the location of a program
- Subject: Re: how to get the location of a program
- From: Shawn Erickson <email@hidden>
- Date: Tue, 19 Apr 2005 16:25:27 -0700
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?
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.
Are you using Cocoa, Carbon or something else?
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.
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden