Re: close all programs
Re: close all programs
- Subject: Re: close all programs
- From: "Marc K. Myers" <email@hidden>
- Date: Fri, 28 Mar 2003 16:38:12 -0500
Subject: Re: close all programs
From: Andrew Oliver <email@hidden>
To: "Marc K. Myers" <email@hidden>,
<email@hidden>
On 3/28/03 11:21 AM, "Marc K. Myers" <email@hidden> wrote:
This seems to do the job. The conditional with the list excludes apps
you don't want to close. If you really want to close everything it
can
be omitted.
tell application "Finder"
...
Not under Mac OS X
Ignoring for the moment the original poster's problems targetting
'System
Events', 'System Events' is the app to target for this kind of task.
Under
Mac OS X the Finder might not be active and your script will fail.
Under earlier versions of the Mac OS, you could be sure the Finder was
running since that was the core interface. Not so in X where the
Finder is
just another application trying to do its job (which is to provide a
UI to
the file system)
You could turn off the Finder in earlier versions of the Mac OS the
same way you do it in X: send it a quit event. In the unusual
circumstance that the Finder is not running the script will simply
launch it and proceed along its merry way, not fail.
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[03/28/03 4:36:39 PM]
_______________________________________________
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.