• 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
List of open applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

List of open applications


  • Subject: List of open applications
  • From: "koenig.yvan" <email@hidden>
  • Date: Wed, 05 Sep 2012 16:57:47 +0200

Hello

I wrote a quick and dirty piece of code but I wonder if there is a neeter way to get the list of open applications.

--[SCRIPT]
tell application "System Events" to tell application process "loginwindow"
# Issue cmd + option + Escape
key code 53 using {command down, option down}
repeat
if exists (first window whose subrole is "AXSystemDialog") then exit repeat
delay 0.2
end repeat
tell (first window whose subrole is "AXSystemDialog")
tell first scroll area to tell first table to set openApplications to value of text field 1 of every row
click button 1
end tell
end tell
--[SCRIPT]

Yvan KOENIG (VALLAURIS, France) mercredi 5 septembre 2012 16:57:10


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: List of open applications
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: Bad script, good script
  • Next by Date: Re: List of open applications
  • Previous by thread: set user agent string on Safari
  • Next by thread: Re: List of open applications
  • Index(es):
    • Date
    • Thread