Posted By

tilakapash on 01/04/12


terminal automation

Versions (?)

Clicking menu items using AppleScript

 / Published in: AppleScript

  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  

You need to login to post a comment.