Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ggrrll
Last active January 20, 2017 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ggrrll/d2cdf1140a134a99d77c84ca5610e4f2 to your computer and use it in GitHub Desktop.
Save ggrrll/d2cdf1140a134a99d77c84ca5610e4f2 to your computer and use it in GitHub Desktop.
on run {input, parameters}
tell application "System Events"
key code 8 using command down
delay 0.1
key code 53
key code 3 using command down
key code 9 using command down
end tell
return input
end run
@ggrrll
Copy link
Author

ggrrll commented Jan 19, 2017

With the help of list-of-applescript-key-codes and this post I could make this simple applescript that I feed to automator and combine with a cmd+shift+f shortcut - the reason why there is delay 0.1 / key code 53 is because I wanted to make it work on jupyter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment