Skip to content

Instantly share code, notes, and snippets.

@ashkrosh
Created March 30, 2020 11:12
Show Gist options
  • Save ashkrosh/81074f45abffde7a3152efa1eb2ffbf8 to your computer and use it in GitHub Desktop.
Save ashkrosh/81074f45abffde7a3152efa1eb2ffbf8 to your computer and use it in GitHub Desktop.
on alfred_script(q)
set startIt to false tell application "System Events" if not (exists process "kitty") then set startIt to true else if not (frontmost of process "kitty") then set frontmost of process "kitty" to true set visible of process "kitty" to true tell application "System Events" to key code 126 using {option down, command down} end if end tell if startIt then tell application "kitty" to activate end if
end alfred_script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment