le-tex / InDesignScripts

collection of InDesign scripts
BSD 2-Clause "Simplified" License
52 stars 14 forks source link

In InDesign CC #3

Closed hastingscj999 closed 8 years ago

hastingscj999 commented 8 years ago

I get an error that says the object (which I believe is objectExportOptions) does not support the property "customImageConversion" -- this is for the image-export.jsx script, trying to export a jpg to a folder on the desktop.

Running InDesign CC 2015.2, build 11.2.0.99

allew78 commented 8 years ago

I get same error as above. This error message pops up directly after hitting "ok" on the options screen.

error_message_image_export_jsx

I have InDesign version CC 2014.1 Build 10.1.0.70 x64

gimsieke commented 8 years ago

@mkraetke will look into this next week (he’s currently traveling and doesn’t have CC on his laptop)

hastingscj999 commented 8 years ago

Hi, was wondering if you were able to look into this. #hopeful!

mkraetke commented 8 years ago

I can't reproduce the bug with CC. Please be so kind and send me a snippet of the files as IDML including images to letexml@le-tex.de.

mkraetke commented 8 years ago

Unfortunately, the InDesign API lacks of an important property since version 11.0. The property customImageConversion determines up to version 10.0 whether object export options are set for an image or not.

As there is no feasible workaround yet, I disabled the object export options in the script for InDesign 11.0 and later. With this revision 21cd413e4aa7aff87353c04e78987e698af3a1b4, the script should work with version 11.0.

hastingscj999 commented 8 years ago

Thank you! We were trying to put together a file snippet that was "genericized" without proprietary stuff that we could send but ran out of time.

mkraetke commented 8 years ago

With the help of @grefel, I found out that InDesign 11.0 API use the property preserveAppearanceFromLayout to indicate whether custom object export options apply to an object. Dependent on the InDesign version, the script now checks either for customImageConversion or preserveAppearanceFromLayout.

hastingscj999 commented 8 years ago

Thank you!