On 12/11/2006, at 5:20 PM, Jay Soffian wrote:
TM Gurus, is there a way to have TextMate create a new document with specified text that's a little cleaner? I tried "make new document" via Applescript but didn't have any success.
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.
----------------------------- Luke Daley http://www.ldaley.com -----------------------------