我正在尝试使用Apple script在Adobe indesign中自动化导出PDF的过程,我可以进入导出菜单没有问题,可以使用"Command e“命令,但不能进一步。
我也尝试过使用系统事件,通过以下方式选择预设:文件> Adobe PDF预设>“我的预设1...",
所有我得到的是“不能使(文件> Adobe PDF预设>”我的预设1...")变成整数类型。
因此,我需要的帮助是导航系统事件,以便我可以选择我想要使用的预设。
根据我的理解,它应该看起来像这样:
tell application "System Events"
tell process "Adobe InDesign 2020"
set frontmost to true
delay 1
click menu item "My Preset 1..." of menu of menu item "Adobe PDF Presets" of menu "File" of menu bar 1
end tell
end tell发布于 2020-03-04 22:30:55
理想情况下,您可以使用InDesign的脚本API来制作PDF。如果您研究InDesign的AppleScript字典中的"export“词条。您将了解到以下命令是可能的:
export document 1 format PDF type to *SomeOutputPath* using PDF export preset "[Smallest File Size]" 如果您真的想通过单击菜单来执行此操作,请查看InDesign的字典条目中的“菜单操作”和“调用”。它们允许用户调用菜单操作:
set theAction to (menu actions whose name is "My Preset 1...")
invoke (item 1 of theAction)https://stackoverflow.com/questions/60507516
复制相似问题