[TxMt] Applescript question

Henrik Nyh henrik at nyh.se
Wed Mar 28 15:39:48 UTC 2007


Brandon Farr wrote:
> Does anyone know if it is possible to change TextMate's display font via 
> Applescript. I'd like to do this so that I can work in one font size, 
> and print in another.

Should be possible with GUI scripting: 
http://www.apple.com/applescript/uiscripting/

So you'd either have AppleScript navigate the menus (View > Font > 
Bigger/Smaller) or fake keypresses ⌘+, ⌘-.

That said, there might be a better solution than AppleScript/GUI 
scripting, but I'm not aware of it.



More information about the textmate mailing list