• 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
Printing postscript files from Indesign
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Printing postscript files from Indesign


  • Subject: Printing postscript files from Indesign
  • From: Nan Mossey <email@hidden>
  • Date: Thu, 23 Aug 2007 19:43:32 -0700
  • Thread-topic: Printing postscript files from Indesign

Title: Printing postscript files from Indesign
I’m trying to print individal postcript files for each page of a multi-page InDesign doc. The first part of this script just creates the folder in which the files will end up. It’s the second part that’s troubling me: the script won’t accept the “print file” path. Anyone have any ideas?

--this script depends on an InDesign print preset named "ps Export"

set theHD to (path to startup disk as string)
set tDT to (path to desktop as string)
set theF to (path to desktop as string) & "Postscript files" & ":"
tell application "Finder"
    activate
   set userResponse to (display dialog "What would you like to name the folder that will hold these PDFs? The files will carry the same name." default answer " ")
    set folderName to text returned of userResponse
   if not (exists folder "Postscript files" of folder tDT) then
       make new folder at tDT with properties {name:"Postscript files"}
    end if
   make new folder at folder "Postscript files" of folder tDT with properties {name:folderName}
end tell
set
folderPath to theF & folderName & ":"

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



--
Nan Mossey
Director of Production
McMurry
125 High Rock Ave.
Saratoga Springs, NY 12866

518-587-0547 ext.3797
www.mcmurry.com

A better place.  A better way.

 _______________________________________________
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

  • Follow-Ups:
    • Re: Printing postscript files from Indesign
      • From: Shane Stanley <email@hidden>
    • Re: Printing postscript files from Indesign
      • From: Philip Aker <email@hidden>
  • Prev by Date: Re: Opening documents in App via Finder?
  • Next by Date: Re: Printing postscript files from Indesign
  • Previous by thread: Re: Opening documents in App via Finder?
  • Next by thread: Re: Printing postscript files from Indesign
  • Index(es):
    • Date
    • Thread