Skip to content

Instantly share code, notes, and snippets.

@insanj
Created March 20, 2023 21:22
Show Gist options
  • Save insanj/b890b6b50f6297d5cbb4cb7c6e1444fe to your computer and use it in GitHub Desktop.
Save insanj/b890b6b50f6297d5cbb4cb7c6e1444fe to your computer and use it in GitHub Desktop.
AppleScript SystemEvents to move window position to 0,0 (see: https://stackoverflow.com/a/55270787/1258238)
delay 1
tell application "System Events" to tell window 1 of (process 1 where it is frontmost)
try
set position to {0, 0}
end try
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment