Dear All,
I am unable to load joboptions file using the below code:
tell application "Adobe InDesign CS4"
set myJobOption to "Macintoch:SO_Cache:58999_01:"
set myJobOptionName to "Test.joboptions"
tell PDF export preferences
import preset myJobOption from myJobOption
end tell
end tell
Below is the javascript I am using to load joboptions file and it is working fine.
var myPreset=app.pdfExportPresets.add(File(Macintoch:SO_Cache:58999_01:Test.joboptions))
Please let me know what I am missing in applescript.
Regards,
Poo
I don’t use Adobe InDisign CS4, but it seems very uncommon to met that you’d have to specify the container of the file with the front parameter. Normally the full path to the file has to passed.
set myJobOptionFolder to "Macintoch:SO_Cache:58999_01:"
set myJobOptionName to "Test.joboptions"
set myJobOptionFull to (myJobOptionFolder & myJobOptionName) as text
tell application "Adobe InDesign CS4"
tell PDF export preferences
import preset alias myJobOptionFull
end tell
end tell
Hope it works,
ief2
Hi Many thanks!!!
But unfortunately it gives error for alias stating that “Expected end of line but found class name.”
Regards,
Poo
Hi,
set myJobOptionsFolder to "Macintoch:SO_Cache:58999_01:"
set myJobOptionName to "Test.joboptions"
set myJobOptionFull to (myJobOptionsFolder & myJobOptionName) as text
tell application "Adobe InDesign CS4"
tell PDF export preferences
import alias file myJobOptionFull
end tell
end tell
Above code is showing below error:
“Adobe InDesign CS4 got an error: alias(PDF export preferences) of PDF export Preferences doesn’t understand the impot message.”
Regards,
Poo
To import it, you probabaly want:
tell application “Adobe InDesign CS4”
import format PDF export presets format from alias (myJobOptionFolder & myJobOptionName)
end tell
Thanks Shane!!!
It is perfect what I am looking for.
Regards,
Poo
Hi Shane,
I have a InDesign document with some images. Some images are linked from the path of indesign document and some images linked from other location. I want to copy those images to indesign document path which linked from other location and re-link all images.
I can update the all the link no issues with that. I got stuck to copy images if not linked from the indesign document path.
Regards,
Poo