Alfred & Total Terminal Integration

I'm a BIG Alfred fan and use it all the time!

I've also recently become a big TotalTerminal fan too. I'm using the Terminal on my Macs more and more these days.

With Alfred you can compose terminal commands in the app and then send them to terminal, which can be very useful. However I was having trouble getting it to play nice with TotalTerminal.

Alfred give you the option of using Terminal or iTerm or use a custom script to control the function.

I was not able to get the custom script to send my commands from Alfred to TotalTerminal.

However a loverly chap on the Alfred Forum helped me out.

The script you need to make Alfred send terminal commands to TotalTerminal is:

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

This will open a new tab in TotalTerminal. If you want the command to run in the current tab just remove the line that starts "tell application…"

Have fun.

Alfred & TotalTerminal Integration
Date: Wednesday 31st July 2013