I am working on a script that uses System Events to select everything on a layer in my Quark file, hit command G to group it, hit Command M to bring up the Modify window, and then click “Suppress Output” if it is not already checked. I finally worked all of it out, BUT if you run this script on a Quark file with a couple of boxes in it, you will see there is a bug. It does everything as expected, clicking the “Suppress Output” box (you can see the check appear). When it is done, if you hit Command M to bring up the modify window again, the Suppress Output button is no longer clicked! Is this a known bug? Is there something I am missing?? I can see it is doing everything I want it to but the result disappears…
tell application "QuarkXPress"
activate
tell front document
select every generic box of page 1
tell application "System Events"
keystroke "g" using {command down}
keystroke "m" using {command down}
delay 2
tell process "QuarkXPress"
get value of checkbox "Suppress Output" of UI element 1 of group 1 of tab group 1 of window "Modify"
if the result is not equal to 1 then
click checkbox "Suppress Output" of UI element 1 of group 1 of tab group 1 of window "Modify"
end if
keystroke return
end tell
end tell
end tell
end tell
Model: Mac G5
Operating System: Mac OS X (10.3.9)