• 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: auto run a applescript and quitting it
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: auto run a applescript and quitting it


  • Subject: Re: auto run a applescript and quitting it
  • From: Mr Tea <email@hidden>
  • Date: Fri, 19 Dec 2003 20:33:40 +0000

On 17 Dec 2003, at 10.14 am, Lin cckk wrote:

hi,
1. I add my applescript to startup items, every time I login, the system popup a dialog ask me if I want to run the script,
I just want to run it and how can I avoid this dialog?

Open the script in your script editor, choose 'save as' from the file menu and
make sure that the 'startup screen' (or 'show startup screen') option is unchecked. Use the saved file to replace your original.

2. when I shutdown my computer, the applescript wont quit, I have to use Command+Option+Esc to quit it, how should
I write my applescript, so it will quit when the system is shutting down?

Try adding these lines at the end of the script...

on quit
continue quit
end quit

That seems to do the trick.


Cordially


Nick
pp Mr Tea
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >auto run a applescript and quitting it (From: Lin cckk <email@hidden>)

  • Prev by Date: Re: change from upper to lower case
  • Next by Date: Re: Alias vs. Finder object (was: Accented Characters in Finder N ames)
  • Previous by thread: Re: auto run a applescript and quitting it
  • Next by thread: Accented Characters in Finder Names
  • Index(es):
    • Date
    • Thread