Re: Printing postscript files from Indesign
Re: Printing postscript files from Indesign
- Subject: Re: Printing postscript files from Indesign
- From: Shane Stanley <email@hidden>
- Date: Fri, 24 Aug 2007 17:30:57 +1000
- Thread-topic: Printing postscript files from Indesign
On 24/8/07 12:43 PM, "Nan Mossey" <email@hidden> wrote:
> tell application "Adobe InDesign CS2"
> activate
> with timeout of 1200 seconds
> set theDoc to document 1
> set pageCount to count every page of theDoc
>
> repeat with i from 1 to pageCount
> set filePath to theF & folderName & ":" & folderName & "_" & i &
> ".ps"
> set pagenumb to i & "-" & i as string
> set properties to {page range:pagenumb}
> set print file to filePath
>
> print using "ps Export" without print dialog
> end repeat
> end timeout
> end tell
You're not addressing the document or its print preferences. Try this:
tell application "Adobe InDesign CS2"
activate
with timeout of 1200 seconds
set pageCount to count every page of theDoc
set theStyle to printer preset "ps Export"
repeat with i from 1 to pageCount
set filePath to theF & folderName & ":" & folderName & "_" & i &
".ps"
set pagenumb to i & "-" & i as string
tell active document
tell print preferences
set active printer preset to theStyle
set page range to pagenumb
set printer to postscript file
set print file to filePath
end tell
print without print dialog
end tell
end repeat
end timeout
end tell
--
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