Last active
February 7, 2016 02:34
-
-
Save igaiga/c2eacec6bb42ccf22b5a to your computer and use it in GitHub Desktop.
alfread item2 custom terminal setting
This file contains hidden or 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
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