On Nov 12, 2006, at 6:30 PM, Luke Daley wrote:
A Guru I am not, but Allan gave this to me a few days ago.
osascript -e 'tell app "TextMate" to activate' -e 'tell app "System Events" to keystroke "n" using command down'
Works great. As for add the text, I don't know.
Cool. New version attached. Instead of piping to mate, I pipe to pbcopy, then just do a cmd-n, cmd-v via system events.
j.