GUI scripting in Quark
GUI scripting in Quark
- Subject: GUI scripting in Quark
- From: Michael Tompsett <email@hidden>
- Date: Fri, 21 May 2004 17:08:01 +0100
I am trying to use GUI scripting to change the Print Style pop up menu in the Print Layout box in Quark 6.
It works and changes the Print Style to SavedPrintStyleName but the actual settings do not change.
It is if as it needs something to tell quark to perform the change you have just made.
There are two examples of where this happens. Am i just missing something or do i need to add some extra command in to make the CLICK actually process?
FIRST EXAMPLE (YOU MUST HAVE A QUARK PAGE OPEN AND THE PRINT LAYOUT WINDOW OPEN)
tell application "QuarkXPress"
activate
end tell
tell application "System Events"
tell process "QuarkXPress"
tell pop up button 1 of window "Print Layout 1"
click
click menu item "SavedPrintStyleName" of menu 1
end tell
end tell
end tell
SECOND EXAMPLE (THIS CLICKS ON THE OUTPUT BUTTON - IT HIGHLIGHTS BUT DOES NOTHING!)
tell application "QuarkXPress"
activate
end tell
tell application "System Events"
tell process "QuarkXPress"
tell radio button "Output" of tab group 1 of window "Print Layout 1"
click
end tell
end tell
end tell
I am using GUI because plain applescript will not do what i need it to do. Despite having the command to change the halftone screen in the print setup (set print setup to {halftone screen:150}), the applescript command will not change it if the halftoning pop up menu is set to PRINTER, and there is no way using applescript to change PRINTER to HALFTONING. And i can't get to the Output menu using GUI (see second example above).
i seem to be going round in circles!
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.