Re: The script running finding a path to itself
Re: The script running finding a path to itself
- Subject: Re: The script running finding a path to itself
- From: kai <email@hidden>
- Date: Thu, 17 Nov 2005 02:01:47 +0000
On 17 Nov 2005, at 01:41, Brett Conlon wrote:
I had a play with the following code but it only returns the Script
editor app (which is me... not the script). Is there another
reference for "me" to mean the script running?
set ScriptPath to alias (path to me as text)
When you save the script as an application, 'path to me' will return
the script application as an alias.
So, if you want an alias, leave it as 'path to me'.
If you want a text path, I'd suggest you use 'path to me as Unicode
text' (it's a bit safer than plain text for this purpose).
---
kai
_______________________________________________
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