Last active
June 17, 2018 02:54
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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