Re: [Q] Get the folder the script is located in
Re: [Q] Get the folder the script is located in
- Subject: Re: [Q] Get the folder the script is located in
- From: Michelle Steiner <email@hidden>
- Date: Thu, 14 Sep 2006 07:55:20 -0700
On Sep 14, 2006, at 7:50 AM, Adam Bell wrote:
I would like to be able to get the folder my applescript is
located in.
How can I do that?
set myFolder to ( get folder ... )
tell application "Finder" to set c to container of (path to me)
That does not work for scripts that are run from Script Editor; it
returns the path to the script editor, and not to the script file.
It does work if the script is saved as an application or if the
script is run from the script menu.
-- Michelle
--
Help, I've caught a cult, and can't get out!
_______________________________________________
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