• 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
Quitting applications and applescript studio application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Quitting applications and applescript studio application


  • Subject: Quitting applications and applescript studio application
  • From: "Martha I. Espinosa" <email@hidden>
  • Date: Wed, 20 Apr 2005 14:54:32 -0600

Title: Quitting applications and applescript studio application
Hi,

I'm having problems with the following applescript:

tell application "System Events"
       
set RunningApps to the name of every process whose visible is true
end tell

repeat with CurrentApp from 1 to (the count of text items in RunningApps)
    
set WhichApp to (text item CurrentApp of RunningApps)
        if (WhichApp is not in {"Finder"}) then
                tell application WhichApp to quit
      
end if
end repeat

This has been incorporated into an applescript studio application.  If the user opens an application within my applescript it freaks out.  Any ideas?

-ME
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Quitting applications and applescript studio application
      • From: J Stewart <email@hidden>
  • Prev by Date: Re: Applescripting SummaryService
  • Next by Date: Re: Quitting applications and applescript studio application
  • Previous by thread: Re: Applescripting SummaryService
  • Next by thread: Re: Quitting applications and applescript studio application
  • Index(es):
    • Date
    • Thread