The Easiest Way to Save and Share Code Snippets on the web

Your snipt has been migrated to #newsnipt successfully.

Clicking menu items using AppleScript

applescript

posted: Apr, 12th 2010 | jump to bottom

tell application "Terminal" to activate
tell application "System Events"
	tell process "Terminal"
		click menu item "New Window" of menu "Shell" of menu bar 1
		tell application "Terminal" to close the front window
	end tell
end tell
117 views