Re: Script menu or double-click ?
Re: Script menu or double-click ?
- Subject: Re: Script menu or double-click ?
- From: Michelle Steiner <email@hidden>
- Date: Sun, 13 Aug 2006 22:41:11 -0700
On Aug 13, 2006, at 10:21 PM, Bruno Pesenti wrote:
How to know if a script is run from the script menu or by a double-
click ?
If it's run from the script menu, it's a compiled script. If it's
run from a double-click, it's an application. If you double-click a
compiled script, it will open in script editor.
Here is one way to tell whether it has been run from the script menu:
if ((path to me) as text) contains ":scripts:" then
set runFromScript to true
else
set runFromScript to false
end if
--
Your right to free speech does not incur an obligation for anyone to
listen.
_______________________________________________
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