Hello:
I’ve read several of the posts related to this topic and editied my scripts accordingly but I’m still having a difficult time getting the PDF to open with the desired options:
on open these_items
repeat with i from 1 to number of items in these_items
try
set this_item to item i of these_items
set theFile to this_item as alias
tell application "Adobe Photoshop CS2"
activate
set PDFOpenOptions to {class:PDF open options, crop page:trim box, name:(i as string), resolution:300, mode:grayscale, page:1, use antialias:yes, width:12, constrain proportions:true}
open theFile as PDF with PDFOpenOptions
do action "B&W Printout" from "Ad Proof Actions.atn"
end tell
on error the error_message number the error_number
display dialog "ERROR: " & the error_number & ". " & the error_message buttons ("OK")
end try
end repeat
end open
Can anyone see what I’m doing wrong? I receive “error -1700 Can’t make some data into the expected type”. Any suggestions greatly appreciated!
Thanks