Skip to content

Instantly share code, notes, and snippets.

@Sangdol
Created July 23, 2022 14:49
Show Gist options
  • Save Sangdol/bff520b39778e268aef45a7f592596aa to your computer and use it in GitHub Desktop.
Save Sangdol/bff520b39778e268aef45a7f592596aa to your computer and use it in GitHub Desktop.
An AppleScript to un-minimize a window of the currently focused application.
# https://talk.automators.fm/t/unminimize-windows-of-the-current-application/12360/5
tell application id ("com.apple.systemevents") ¬
to tell (process 1 where it is frontmost) ¬
to tell (windows whose attribute named "AXMinimized"'s value is true) ¬
to if (it exists) then set the value of its attribute named "AXMinimized" of item 1 to false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment