I’ve struck a serious problem when updating my App to use Adobe Acrobat DC 2015.
I’m trying to use the GUI to print multi-page documents, but cannot un-tick a radio button when ticking a different button in the same group. Both buttons remain ticked, and the printing is defaulting to the unwanted button, printing multi-pages to a sheet, instead of 100%.
Does anyone know of a different way to un-tick that darn button, or even better, how to direct print the document. I can’t find any documentation online of the direct printing formatting.
I need to print all pages, at 100%, with a particular printer, the ‘theLargePagePrinter’. Also, we’re using Pitstop Pro 13.
tell application "Adobe Acrobat" to activate
do shell script ("sleep 0.2")
tell application "System Events" to tell process "AdobeAcrobat"
do shell script ("sleep 0.2")
try
keystroke "p" using command down
end try
do shell script ("sleep 0.2")
try
click pop up button 1 of group 1 of window "Print"
end try
set x to 0
repeat until exists menu 1 of pop up button 1 of group 1 of window "Print"
do shell script ("sleep 0.1")
set x to x + 1
if x ≥ 20 then exit repeat # wait 2 seconds
end repeat
do shell script ("sleep 0.2")
try
click menu item (my theLargePagePrinter) of menu 1 of pop up button 1 of group 1 of window "Print"
end try
do shell script ("sleep 0.2")
try
click radio button "All" of group 2 of window "Print"
end try
try
click checkbox "Size" of group 3 of window "Print"
end try
do shell script ("sleep 0.2")
try
try
say 1
say (exists (radio button "Shrink oversized pages" of group 3 of window "Print")) as text --< "true"
end try
try
say 2
tell application "System Events" to display dialog (get every attribute of radio button 3 of group 3 of window "Print") as text — < fails
say 3
end try
repeat while value of radio button "Shrink oversized pages" of group 3 of window "Print" is 1
do shell script ("sleep 0.2")
click radio button "Actual size" of group 3 of window "Print"
# set value of radio button "Shrink oversized pages" of group 3 of window "Print" to 0 — < Cannot set value
do shell script ("sleep 0.2")
end repeat —< Keeps looping
end try
do shell script ("sleep 0.2")
try
click radio button "Actual size" of group 3 of window "Print"
end try