Clicking menu items using AppleScript

/ Published in: AppleScript
Save to your folder(s)

Copy this code and paste it in your HTML
  1. tell application "Terminal" to activate
  2. tell application "System Events"
  3. tell process "Terminal"
  4. click menu item "New Window" of menu "Shell" of menu bar 1
  5. tell application "Terminal" to close the front window
  6. end tell
  7. end tell

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.