• 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: quit all visible applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: quit all visible applications


  • Subject: Re: quit all visible applications
  • From: Håvard Graudo <email@hidden>
  • Date: Mon, 2 May 2005 15:16:26 +0200

if  Iwant to quit all running applications (without quitting background
processes), how would I make the distinction in an Applescript? thanks.




I think you could use some of this as a starting point. It will not quit classic nor Finder. You may or may not want the 'frontmost is false'.


Håvard


tell application "System Events" to set andreApp to name of every application process whose (visible is true and frontmost is false and name is not "Finder")
repeat with prog in andreApp
ignoring application responses
tell application (prog as text) to quit
end ignoring
end repeat











_______________________________________________ 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
References: 
 >quit all visible applications (From: Jason Davies <email@hidden>)

  • Prev by Date: Re: text item delimiter-resolved.
  • Next by Date: re: quit all visible applications...
  • Previous by thread: quit all visible applications
  • Next by thread: Automator Multi step shell actions
  • Index(es):
    • Date
    • Thread