Re: tell application "<some application>" to quit...
Re: tell application "<some application>" to quit...
- Subject: Re: tell application "<some application>" to quit...
- From: "Bob.Kalbaugh" <email@hidden>
- Date: Sat, 01 Sep 2001 16:59:58 -0500
on 9/1/01 11:27 AM, Paul Berkowitz at email@hidden wrote:
>
>
Since they _won't_ all have windows, I guess you'd better do this:
>
>
tell app "whatever"
>
activate -- for those that need it
>
try
>
set n to (count windows)
>
repeat with i from n to 1 by -1
>
set theWindow to window i
>
close theWindow saving no
>
end repeat
>
on error
>
beep 3 -- get your attention for the next command!
>
end try
>
quit
>
end tell
>
>
>
>
--
>
Paul Berkowitz
Thanks Paul. I tried it and it does work nicely for a number of apps, but
still no go with quark.
Does anyone remember the shutdown app that came with older Mac OS's (7.5 ?)
It was in the apple menu items folder by default and had a bullet in the
beginning of it's name? something like:
Shut Down
I vaguely remember reading or hearing that this was a script applet. I could
be wrong, but if not, I wonder if it was editable? Does anybody know?. I'm
tempted to drag out an old machine and look for it but would rather wait if
someone knows for sure and wouldn't mind sharing.
Thanks,
--
bob.kalbaugh
--