Skip to content

Instantly share code, notes, and snippets.

@Boerworz
Created August 30, 2017 06:15
Show Gist options
  • Save Boerworz/79443c0ac704178864d8152880204e31 to your computer and use it in GitHub Desktop.
Save Boerworz/79443c0ac704178864d8152880204e31 to your computer and use it in GitHub Desktop.
AppleScript to re-open the main window of almost any app
set applicationPath to (POSIX path of (path to frontmost application as text))
do shell script "open \"" & applicationPath & "\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment