• 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: close all programs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: close all programs


  • Subject: Re: close all programs
  • From: Andrew Oliver <email@hidden>
  • Date: Fri, 28 Mar 2003 12:00:00 -0800

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)

If you look at the Finder's dictionary (at least in 10.2.4), you'll notice
that the 'application' object is under the 'Legacy' suite.
_______________________________________________
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.

  • Follow-Ups:
    • Re: close all programs
      • From: Paul Berkowitz <email@hidden>
    • Re: close all programs
      • From: Rob Jorgensen <email@hidden>
References: 
 >Re: close all programs (From: "Marc K. Myers" <email@hidden>)

  • Prev by Date: Re: Antw: close all programms
  • Next by Date: Releasing a loaded script from memory
  • Previous by thread: Re: close all programs
  • Next by thread: Re: close all programs
  • Index(es):
    • Date
    • Thread