Re: auto run a applescript and quitting it
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.