[TxMt] Distilling Text (was: Another Editor War Sparked by TextMate)

Luke Daley ld at ldaley.com
Sun Nov 12 23:30:40 UTC 2006


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
-----------------------------





More information about the textmate mailing list