RE: Adobe InDesign CS3 JPEG export range problem
RE: Adobe InDesign CS3 JPEG export range problem
- Subject: RE: Adobe InDesign CS3 JPEG export range problem
- From: <email@hidden>
- Date: Thu, 22 Apr 2010 16:32:32 +0000
- Sensitivity: Normal
Hi Bert,
Looks like you need to set the 'Page String' in the JPEG Export Prefs. See if the code below works for you.
Jay
---------------------------
on Export_JPGs(myDoc, the_export_folder)
tell application "Adobe InDesign CS3"
set myJPEG_Prefs to JPEG export preferences
tell myJPEG_Prefs
set resolution to 72
set JPEG Quality to maximum
set JPEG export range to export range
set JPEG Rendering style to baseline encoding
end tell
set pageCount to count every page of document 1
tell document 1
repeat with i from 1 to pageCount
set Page String of myJPEG_Prefs to (i as string)
export format JPG to (the_export_folder & i & ".jpg" as string)
end repeat
end tell
end tell
end Export_JPGs
---------------------------
--
> Hello, I'm trying to export every page of a given InDesign CS3
> document to separate jpg's.
> Something seems to go wrong with specifying the export
> range (variable numb). I tried some other values instead of
> 1-1, but none of my attempts worked out so far.
> Can anyone please help me through this?
> This is what I have (error occurs on the commented line):
_______________________________________________
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