[TxMt] Activate Bundle Menu Items from Applescript?

thomas Aylott oblivious at subtlegradient.com
Thu Dec 7 23:20:22 UTC 2006


On Dec 7, 2006, at 5:40 PM, Benjamin Jackson wrote:

> I would think this might work:
>
> tell application "TextMate" to activate
> tell application "System Events"
> 	tell process "TextMate"
> 		tell menu bar 1
> 			tell menu bar item "Bundles"
> 				tell menu 1
> 					tell menu item "ActionScript"
> 						tell menu 1
> 							tell menu item "Test Movie"
> 								perform action "AXPress"
> 							end tell
> 						end tell
> 					end tell
> 				end tell
> 			end tell
> 		end tell
> 	end tell
> end tell
>
> But it seems to give no response. Anyone know how I might do this?  
> Thanks,
>
> Ben

I was in the middle of writing one of these guys.
It was a monster, but it worked.
Now I can't find it :(

Check out
http://www.prefab.com/uibrowser/

thomas Aylott — design42 — subtleGradient — CrazyEgg


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20061207/c48005a8/attachment.html>


More information about the textmate mailing list