Skip to content

Instantly share code, notes, and snippets.

@ChristoferK
Last active June 17, 2018 02:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChristoferK/7102a0e75f68d7bee0746cd69f17bd81 to your computer and use it in GitHub Desktop.
Save ChristoferK/7102a0e75f68d7bee0746cd69f17bd81 to your computer and use it in GitHub Desktop.
[Dock Applications] Retrieves a list of applications in the dock that are currently running #AppleScript #System_Events #UI #dock #applications
tell application "System Events" to tell ¬
process "Dock" to tell ¬
list 1 to get the name of ¬
(every UI element whose ¬
value of attribute "AXSubrole" is "AXApplicationDockItem" and ¬
value of attribute "AXIsApplicationRunning" is true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment