Created
May 11, 2019 10:59
-
-
Save langolf/722712810348c301663790f514eb4771 to your computer and use it in GitHub Desktop.
Kitty post command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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