Skip to content

Instantly share code, notes, and snippets.

@fsegouin
Created September 12, 2015 12:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Open a command in iTerm2 2.9+ from Alfred
on alfred_script(q)
tell application "iTerm2"
activate
set newWindow to (create window with default profile)
tell current window
tell current session
write text q
end tell
end tell
end tell
end alfred_script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment