Skip to content

Instantly share code, notes, and snippets.

Avatar

Yossi Silberhaft yossi-silberhaft

  • Tel Aviv, Israel
View GitHub Profile
View alfred_iterm2_custom_script.applescript
on alfred_script(q)
if application "iTerm2" is running or application "iTerm" is running then
run script "
on run {q}
tell application \"iTerm\"
activate
try
select first window
set onlywindow to true
on error