I added line
set PPD to “Adobe PDF 9.0”
as the second line in the tell block. This
fixed the problem, but wasn’t necessary in 10.4.
Thanks for the help.
Mark
From: Mark Workman
Sent: Friday, July 16, 2010 12:38
PM
To:
'email@hidden'
Subject: Problem going from 10.4
to 10.6 in Indesign
I migrated a script from 10.4.11 to 10.6.4 in Indesign CS4.
I fixed several issues from the upgrade. I’m stuck on one item. Setting
the page width when making a postscript file stops the script with an error. If
I set it to auto it works but the postscript file is the wrong width. Here is
the code and error. Thanks for any suggestions.
tell print preferences of active document
set printer
to postscript
file
set print
file to "test.ps"
set paper
size to custom
set paper
height to v5a
set paper
width to docw
end tell --print preferences
error "Adobe InDesign CS4 got an
error: Invalid value for set property 'paper width'. Expected auto or number or
string, but received 25.0." number
30477