• 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: Indesign export problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Indesign export problem


  • Subject: Re: Indesign export problem
  • From: Jeremy Sellors <email@hidden>
  • Date: Thu, 29 Jan 2004 03:46:43 -0800

This works for me
set theHD to (path to startup disk as string)
set tDT to (path to desktop as string) --I used desktop because it is more convenient for me.
set folderPath to tDT & "Publication:" --assumes folder "Publication" on desktop
tell application "InDesign 2.0.2"
activate
set theDoc to document 1
set docName to name of theDoc
set PDFExportPreferences to properties of PDF export preferences --not needed just left in for interest
set pageCount to count every page of theDoc
repeat with i from 1 to pageCount
set filePath to folderPath & docName & " Page " & i & ".pdf"
set pagenumb to i & "-" & i as string
set properties of PDF export preferences to {page range:pagenumb} --PDF export preferences are property of application not document
export theDoc format "Adobe PDF" to filePath using "Vertis" --"Vertis" is custom PDF style. This just replaces pdf's if they already exist
end repeat
end tell
__Jeremy

On Tuesday, January 27, 2004, at 10:58 AM, Nan Mossey wrote:

The following script is intended to work its way through a large Indesign
document and export each page as an individual PDF. For some reason, it will
not set the page range to the current page. I haven't been able to
accomplish this by printing to .ps files, either. Is page range not
scriptable in Indesign?

set theHD to (path to startup disk as string)
set folderPath to theHD & "Publication:"
tell application "InDesign CS"
activate
set theDoc to document 1
tell theDoc
repeat with i from 1 to count of all pages
set filePath to folderPath & i & ".pdf"
set properties of PDF export preferences to {page range:i}
export format "Adobe PDF" to filePath using "Vertis"
end repeat
end tell
end tell



Thanks for any insight.

-Nan Mossey

========================================================
This e-mail message is intended only for the personal
use of the recipient(s) named above. If you are not
an intended recipient, you may not review, copy or
distribute this message.

If you have received this communication in error,
please notify the Albany Times Union Help Desk
(email@hidden) immediately by e-mail and
delete the original message.
========================================================
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Indesign export problem (From: Nan Mossey <email@hidden>)

  • Prev by Date: Re: MS Word Text Boxes Scriptable?
  • Next by Date: Re: (no subject)
  • Previous by thread: Re: MS Word Text Boxes Scriptable?
  • Next by thread: Scripting Additions 'Read' has stopped reaching EOF?
  • Index(es):
    • Date
    • Thread