Skip to content

Instantly share code, notes, and snippets.

@fsegouin
Created September 12, 2015 12:35
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 fsegouin/a1621ff62134e470c0b8 to your computer and use it in GitHub Desktop.
Save fsegouin/a1621ff62134e470c0b8 to your computer and use it in GitHub Desktop.
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