Re: Getting the current directory
Re: Getting the current directory
- Subject: Re: Getting the current directory
- From: Bill White <email@hidden>
- Date: Tue, 16 Nov 2004 16:02:20 -0500
On 11/16/04 3:43 PM, Ken Brooks <email@hidden> wrote:
> I would like to get a file reference (or alias) to the directory containing
> the script that is running. Is there a way to do this?
If the script has been saved an application, then this will give you its
directory as a variable "myLocation":
tell app "Finder" to set myLocation to container of (path to me)
--Bill
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden