• 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: "Bob.Kalbaugh" <email@hidden>
  • Date: Mon, 03 Sep 2001 09:58:11 -0500

on 9/2/01 8:02 PM, Andy Wylie at email@hidden wrote:

> 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?

Well that makes sense, and currently I do work around it with a call to a
second script for Quark. Still, I would like to figure out a way to quit all
apps without the workaround.

> -------------------
> 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.

Hmmm. I see you do it in reverse. This is a good idea. I imagine it keeps
memory from becoming trapped, No? (just guessing)


> Quarkers don't post on the sabbath?___ Andy

I believe thee hast mistook me for a macromedionite. :-)

--
bob.kalbaugh


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

  • Prev by Date: Re: Sort items in a list without OSAXen
  • Next by Date: Re: Tex-Edit, select only HTML lines?
  • Previous by thread: Re: tell application "<some application>" to quit...
  • Next by thread: Re: tell application "<some application>" to quit...
  • Index(es):
    • Date
    • Thread