Skip to content

Instantly share code, notes, and snippets.

@ignlg
Created April 19, 2020 10:20
Show Gist options
  • Save ignlg/414506f80040a386652391b12262b765 to your computer and use it in GitHub Desktop.
Save ignlg/414506f80040a386652391b12262b765 to your computer and use it in GitHub Desktop.
Applescript to open a new iTerm window with Alfred and run the written command.
on alfred_script(q)
tell application "iTerm"
activate
create window with default profile
select first window
set onlywindow to true
tell the first window
tell current session to write text q
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