Re: Quitting all applications
Re: Quitting all applications
- Subject: Re: Quitting all applications
- From: Ehsan Saffari <email@hidden>
- Date: Sat, 10 Mar 2001 07:34:25 -0600
On 9 Mar 2001 10:04:46 Amir Bozorgzadeh <email@hidden>,
wrote:
>
I have written a script to quit all open applications and restart the mac.
>
Is there anyhting I should look out for when doing this. I would also like
>
it to not quit the finder. Is there a syntax for excluding the finder from
>
this quit. Thanks for the help. Here is what I have so far.
>
>
tell application "Finder"
>
activate
>
quit (open applications)
>
restart
>
end tell
A plain [tell application "Finder" to restart] will quit all open apps,
without quitting the Finder, and restart.
What needs to be looked out for is apps that have open documents
and need user interaction before they can quit.
open a new text doc in simpletext and try it.
hth
ehsan