这是我的密码。只要是PDF格式,就能正常工作。但是,如果在命令窗口关闭后打开JPEG,则会弹出一个新的对话框,并询问是否要将文档保存为PDF。我只想告诉它点击不要保存,然后继续.我搞不懂..。
tell application "Adobe Acrobat Pro"
activate -- bring up acrobat
open alias mycurrentfile -- acrobat opens that new file
tell application "System Events"
tell process "Acrobat"
click menu item "Print..." of menu 1 of menu bar item "File" of menu bar 1
click button "Print" of window "Print"
tell application "System Events"
tell process "Acrobat"
click menu item "Close" of menu 1 of menu bar item "File" of menu bar 1
end tell
end tell
end tell
end tell
end tell发布于 2014-06-27 17:07:41
tell application "Adobe Acrobat Pro"
activate -- bring up acrobat
open alias mycurrentfile -- acrobat opens that new file
tell application "System Events"
tell process "Acrobat"
click menu item "Print..." of menu 1 of menu bar item "File" of menu bar 1
click button "Print" of window "Print"
end tell
end tell
close document 1 without saving
end tell如果你只是想打印pdf,最好使用预览
set mycurrentfile to choose file
tell application "Preview"
print mycurrentfile without print dialog
end tellhttps://stackoverflow.com/questions/24456028
复制相似问题