【发布时间】:2013-05-05 23:42:35
【问题描述】:
我是 Applescript 新手。我想知道 Applescript 以显示任意应用程序中的 Apple 菜单栏项目(但原始应用程序应该保留许多栏)。
我尝试了以下脚本,将 Finder 用作一种虚拟应用程序,但它不起作用。
tell application "System Events"
tell process "Finder"
tell menu bar 1
click menu bar item "Apple"
end tell
end tell
end tell
谁能帮忙?
PS-1:我想知道这一点,因为 Control-F2 将焦点移至菜单栏通常不起作用,如以下链接所述: https://apple.stackexchange.com/questions/12723/control-f2-move-focus-to-menu-bar-only-works-occasionally
PS-2:我尝试发布图片,但不允许。
【问题讨论】:
标签: applescript menubar