Skip to content

Instantly share code, notes, and snippets.

@dudeofawesome
Created May 14, 2024 20:20
Show Gist options
  • Save dudeofawesome/9b0c147d3f7cb6649682f5e1c427f121 to your computer and use it in GitHub Desktop.
Save dudeofawesome/9b0c147d3f7cb6649682f5e1c427f121 to your computer and use it in GitHub Desktop.
delay 1
set classNames to {}
tell application "System Events"
tell front window of (first application process whose frontmost is true)
repeat with uiElem in entire contents as list
set classNames to classNames & (class of uiElem as string)
end repeat
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment