Skip to content

Instantly share code, notes, and snippets.

@langolf
Created May 20, 2019 09:18
Show Gist options
  • Save langolf/78dda25c9caaf8463a551e327b837644 to your computer and use it in GitHub Desktop.
Save langolf/78dda25c9caaf8463a551e327b837644 to your computer and use it in GitHub Desktop.
Get opened file for vscode
tell application "System Events"
tell application process "Code"
return value of attribute "AXDocument" of window 1
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment