• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Printing postscript files from Indesign
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Printing postscript files from Indesign (From: Nan Mossey <email@hidden>)

  • Prev by Date: Get text from Quark 7.2 doc
  • Next by Date: Everyone's favorite: scripting Mail.app
  • Previous by thread: Re: Printing postscript files from Indesign
  • Next by thread: Get text from Quark 7.2 doc
  • Index(es):
    • Date
    • Thread