binaryage / totalterminal

Terminal.app plugin for quick access to terminal window (Quake-style)
http://totalterminal.binaryage.com
390 stars 36 forks source link

External command to open new Tab in Visor window #66

Closed notDavid closed 10 years ago

notDavid commented 11 years ago

Hi,

So, my question, is this possible by executing some Visor command to open a new tab in the already existing Visor window?

Thanks! David.

gharlan commented 11 years ago

Open Alfred Preferences, Features, Terminal / Shell. Select Application "Custom" and paste this into the text box:

on alfred_script(q)
    tell application "Terminal"
        activate
        tell application "System Events" to tell process "Terminal.app" to keystroke "t" using command down
        do script q in front window
    end tell
end alfred_script
notDavid commented 10 years ago

Thank you!