• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Script menu or double-click ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Script menu or double-click ?
      • From: Dave Balderstone <email@hidden>
References: 
 >Script menu or double-click ? (From: Bruno Pesenti <email@hidden>)

  • Prev by Date: Script menu or double-click ?
  • Next by Date: File/folder name cleanup droplet
  • Previous by thread: Script menu or double-click ?
  • Next by thread: Re: Script menu or double-click ?
  • Index(es):
    • Date
    • Thread