SV: Acrobat "print pages" advanced settings
SV: Acrobat "print pages" advanced settings
- Subject: SV: Acrobat "print pages" advanced settings
- From: Richard Rönnbäck <email@hidden>
- Date: Sat, 16 Oct 2004 19:33:52 +0200
Hi Adim,
Maybe not a reply to your question exactly as stated, but perhaps a solution
to what you are trying to do nonetheless:
As far as I can tell, the advanced print settings are not scriptable, not by
means of AppleScript anyway, but they are very much scriptable trough
JavaScript. Unfortunately there is one JavaScript property that is Windows
only, namely the property which allows you to set the destination printer by
referring to it by it's name.
If what you are trying to do is to make sure Acrobat prints with specific
settings you can however do it by setting each individual setting via
JavaScript, and that JavaScript snippet can be called from an AppleScript by
using the "do script" command.
The following snippet changes the PostScript Level for the currently
selected printer to Level 3
tell application "Acrobat 6.0.2 Professional"
set mySnippet to "myVar = getPrintParams();
myVar.psLevel = 3"
do script mySnippet
end tell
As you can se it assigns the PrintParams Object to a variable and then
changes the value of a property of that variable.
Note however that according to the documentation "This object controls
printing parameters that affect any document printed via JavaScript."
Whether it also affects documents that are printed through AppleScript I am
not able to test, as I have no printer at home :-) Should that be the case
you can trigger the through the JavaScript "print()" method
Rgds
Richard Rönnbäck
> Från: EBI Aktivitet <email@hidden>
> Datum: Sat, 16 Oct 2004 11:55:24 +0200
> Till: <email@hidden>
> Ämne: Acrobat "print pages" advanced settings
>
> I'm trying to access the advanced settings of the print dialog in Acrobat
> Pro. As far as I can see it's not possible via Applescript, so I've tried
> GUI, but run into some real problems...
>
> I would like to set the advanced settings to a previously saved setting
> (upper left corner of the advanced settings dialog), but Acrobat is doing
> strange things. Not only is the pop up button unnamed, it actually changes
> its numeric reference from time to time! I have a script that got as far as
> clicking on the pop up button, referencing it as "pop up button 3", when
> suddenly the script stopped working. To my horror I noticed that the button
> was now referenced as "pop up button 6"... How to get hold of a moving
> target like that?
>
> My hope is that someone can point me in the right direction either to a
> clean Applescript solution like --print pages xxx using settings "Test"-- or
> a way to get a pop up button that changes its reference and does not return
> a list of its possible values.
>
> Regards, Adim
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> edband.net
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden