Re: Where am I?
Re: Where am I?
- Subject: Re: Where am I?
- From: Timothy Bates <email@hidden>
- Date: Sun, 01 Apr 2001 17:35:18 +1000
On 4/1/01 3:48 PM, "Nick Quinn" <email@hidden> wrote:
>
Instead of hard-coding a path, I would like to do something like:
>
set pathToScript to the path of this script
You and about 10,000 other people. Unfortunately the script editor which
apple provides is to dumb to do this for you, and returns the path to itself
(as if anyone cared).
You have, however, four solutions:
1. applets return the path to themselves, so you are OK running form an
applet.
--this however is a pain in the neck for debugging
2. OSA menu also uses the path to your script: again, no fun debugging.
3. Script debugger 2 sanely returns the path to the script. Golden!
4. Some apps also do this for you for attachments (our PsyScript app does
this, for instance, with attached scripts).
References: | |
| >Where am I? (From: Nick Quinn <email@hidden>) |