Re: Indesign export problem
Re: Indesign export problem
- Subject: Re: Indesign export problem
- From: Jeremy Sellors <email@hidden>
- Date: Thu, 29 Jan 2004 07:37:30 -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
_______________________________________________
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.