Skip to content

Instantly share code, notes, and snippets.

@igaiga
Last active February 7, 2016 02:34
Show Gist options
  • Save igaiga/c2eacec6bb42ccf22b5a to your computer and use it in GitHub Desktop.
Save igaiga/c2eacec6bb42ccf22b5a to your computer and use it in GitHub Desktop.
alfread item2 custom terminal setting
on alfred_script(q)
if application "iTerm" is running then
run script "
on run {q}
tell application \":Applications:iTerm.app\"
activate
tell the first terminal
tell current session to write text q
end tell
end tell
end run
" with parameters {q}
else
run script "
on run {q}
tell application \":Applications:iTerm.app\"
activate
tell the first terminal
tell the last session to write text q
end tell
end tell
end run
" with parameters {q}
end if
end alfred_script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment