tell application "System Events" tell process "Surge" tell menu bar item 1 of menu bar 2 perform action "AXShowMenu" tell menu item "切换配置" of menu 1 to {click, click menu item "外部资源" of menu 1} 点选「切换配置 -> 外部资源」 end tell end tell end tell #mac#Surge#AppleScript