Re: Referencing the Print window in InDesign
Re: Referencing the Print window in InDesign
- Subject: Re: Referencing the Print window in InDesign
- From: Brett Conlon <email@hidden>
- Date: Thu, 12 Jul 2007 14:06:11 +1100
Hi Shane,
Thanks again for your input!
Bringing up the print window is the
easy part... actually I may have just stumbled on what my problem was...
My initial tests for the Print window
wasn't inside the "system events" tell block, therefore it was
only recognising the document windows open in InDesign. Using the below
script I get the Print window appearing and the "Printer..."
button presses but, however, no Apple Print window appears, so I may have
to do like what I do in the Quark Print window and use Extra Suites to
move mouse and click. When I include "set wcount to count of windows"
under the click button line it now includes the Print window in the count.
tell
application
"Adobe InDesign CS2"
activate
tell
application
"System Events"
tell
process
"InDesign"
keystroke
"p" using
{command down}
repeat
until
exists
(window
"Print")
end
repeat
click
button
"Printer..." of
window
"Print"
end
tell
end
tell
end
tell
Cheers,
Coj
Shane Stanley <email@hidden>
12/07/07 12:07 PM
|
To
| Brett Conlon <email@hidden>
|
cc
|
|
Subject
| Re: Referencing the Print window in
InDesign |
|
On 12/7/07 10:48 AM, "Brett Conlon" <email@hidden>
wrote:
> However, when I update my Xerox Splash RIP script to include
> InDesign I will have the same need - to access Apple's Print window
so
> that I can change the presets depending on what is needed at the Splash
> RIP (eg. duplexing, thick stock, colour management etc.).
Good luck. You might see if you can get around it by using different PPDs,
or some kind of pdfmrk file -- anything but GUI scripting.
Theoretically, you should be able to bring up ID's print dialog with:
select menu item "Print..." of submenu "File"
of menu 1
However, it seems to bring it up and hit Print immediately.
--
Shane Stanley <email@hidden>
<http://scriptingmatters.com/aspro>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden