Re: path to a script
Re: path to a script
- Subject: Re: path to a script
- From: Christopher Nebel <email@hidden>
- Date: Wed, 4 Feb 2009 11:03:39 -0800
On Feb 2, 2009, at 6:46 PM, Donald Hall wrote:
When used in a compiled script, "path to me" returns the path to the
script in Leopard when the script is run by Script Editor. However,
when I run the script with a script running application I wrote (an
AppleScript application), I get the pre-Leopard result of the path
to the application running the script. Is there any simple way of
getting the path to the script in this case? Did someone come up
with a way to do this in pre-Leopard days?
Making "path to me" return the path to the script relies on setting up
some extra information in the runtime. There's a C API which will do
the right thing, and "run script" is supposed to do the right thing if
you tell it to run a file -- exactly how are you running your scripts?
--Chris Nebel
AppleScript Engineering
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden