使用AppleScript单击菜单项

【使用AppleScript单击菜单项】青春须早为,岂能长少年。这篇文章主要讲述使用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


    推荐阅读