• 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: tell application "<some application>" to quit...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tell application "<some application>" to quit...


  • Subject: Re: tell application "<some application>" to quit...
  • From: Andy Wylie <email@hidden>
  • Date: Mon, 03 Sep 2001 13:02:11 +1200

on 3/9/01 9:00 AM, Bob.Kalbaugh at email@hidden wrote:

> At any rate, all of this leads me back to the statement I made in my
> original post. I don't think there is any easy *universal* way to quit
> applications. Each one is different. But please, somebody prove this
> otherwise.
I've been using a simple universal quit all run from OSA Menu in Finder
for at least a year and it's never failed but then I don't have Quark... for
the sake of a few lines why not deal with it?
-------------------
tell application "Finder" to ,
set apz to name of application file of every process as list

if "iTunes" is in apz then set sound volume to 1 with large range

repeat with i in reverse of apz
try
tell application i to activate
tell application i to quit
on error m number n
error {m, n}
end try
end repeat
-------------------
this is activated by a \Q+O keystroke mapped to my Intellimouse wheel down +
fwd , +O to get around OSA Menu's sometime inability to get frontmost app
and avoid confusion with \Q global quitter.

Quarkers don't post on the sabbath?___ Andy


  • Follow-Ups:
    • Re: tell application "<some application>" to quit...
      • From: "Bob.Kalbaugh" <email@hidden>
References: 
 >Re: tell application "<some application>" to quit... (From: "Bob.Kalbaugh" <email@hidden>)

  • Prev by Date: Creating records in 4D with AppleScript
  • Next by Date: Re: Creating records in 4D with AppleScript
  • Previous by thread: Re: tell application "<some application>" to quit...
  • Next by thread: Re: tell application "<some application>" to quit...
  • Index(es):
    • Date
    • Thread