[TxMt] script control of font size

Allan Odgaard throw-away-1 at macromates.com
Wed Jul 5 07:21:36 UTC 2006


On 4/7/2006, at 22:31, Oliver Taylor wrote:

> Is it possible to control font-size via a command or applescript or  
> something?

To some degree -- you can issue a ⌘+ via AppleScript e.g. using:

{ sleep .01; osascript -e 'tell app "TextMate" to tell app "System  
Events" to keystroke "+" using {command down}'; } &>/dev/null &

The initial sleep is so that TM will not just ignore the key, as it  
presently do while running commands (so it needs to run the osascript  
after TM sees the command as having completed.)





More information about the textmate mailing list