Skip to content

Instantly share code, notes, and snippets.

@langolf
Created May 11, 2019 10:59
Show Gist options
  • Save langolf/722712810348c301663790f514eb4771 to your computer and use it in GitHub Desktop.
Save langolf/722712810348c301663790f514eb4771 to your computer and use it in GitHub Desktop.
Kitty post command
tell application "System Events"
if frontmost of process "kitty" then
set visible of process "kitty" to false
else
set frontmost of process "kitty" to true
tell process "kitty"
set cmd to "command"
tell application "System Events"
keystroke cmd
keystroke return
end tell
end tell
end if
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment