How do I tell Applescript to tell Acrobat to click the don't save button if/when it appears -


heres code. works fine long pdf. if opens jpeg after command window close new dialog box pops , asks if want save document pdf. want tell click don't save , move on... can't figure out..

tell application "adobe acrobat pro"         activate -- bring acrobat         open alias mycurrentfile -- acrobat opens 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 

tell application "adobe acrobat pro"     activate -- bring acrobat     open alias mycurrentfile -- acrobat opens 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 

if you're looking print pdf might better use preview

set mycurrentfile choose file tell application "preview"     print mycurrentfile without print dialog end tell 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -