繁体   English   中英

如何使用 AppleScript (Big Sur OS) 从下拉菜单中选择菜单项

[英]How can I choose a menu item from dropdown menu using AppleScript (Big Sur OS)

对于 Catalina,我只会在 Preview 中做这样的事情

click pop up button 3
click menu item "Study Edge" of menu 1 of pop up button 3

但是对于大苏尔来说,这不再有效:(

添加 Big Sur 现在需要的拆分器组后,我的代码如下所示:

tell sheet 1
    tell splitter group 1
        click pop up button 3
        click menu item "Study Edge" of menu 1 of pop up button 3
    end tell
    click menu button "PDF"
    repeat until exists menu 1 of menu button "PDF"
        delay 0.02
    end repeat
    click menu item "Save as PDF" of menu 1 of menu button "PDF"
end tell

但它无法找到菜单项“学习边缘”

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM