[TxMt] Re: Control TM with AppleScript?
Jacob Rus
jrus at hcs.harvard.edu
Wed Dec 6 17:54:31 UTC 2006
Hans-Joerg Bibiko wrote:
>
> I googled for it but I didn't find the correct answer.
>
> Is it possible to control TM via AppleScript à la
>
>
> tell app "TextMate"
> activate
> end tell
> tell app "System Events"
> tell process "TextMate.app"
> tell menu bar 1
> tell menu bar item "Help"
> tell menu "Help"
> click menu item "Release Notes"
[...]
Please take a look in the TextMate AppleScript bundle for the "Select
Menu Item with UI Scripting" snippet, and take a look at [this][1] hint
to macosxhints.com, before you write such gross looking scripts (note
that this isn't your fault. The system wants the scripts to look gross
like that, apparently).
[1]: http://www.macosxhints.com/article.php?story=20060921045743404
-Jacob
More information about the textmate
mailing list