[TxMt] Activate Bundle Menu Items from Applescript?

Benjamin Jackson ben at incomumdesign.com
Thu Dec 7 22:40:49 UTC 2006


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




More information about the textmate mailing list