6 Replies Latest reply on Apr 1, 2015 1:00 PM by juan miguela24038520

    Adobe InDesign CS6 (8.0) Asset.placeAsset(document) getting undefined

    juan miguela24038520

      Hi - We wrote .jsx scripts for the CS2 version of InDesign. We now have InDesign CS6. When we run the scripts we get the following error:

       

      Screen Shot 2015-04-01 at 10.49.37 AM.png

       

      The basic function of the script is to import an xml file, select a library, get a specific asset from the library and then adds it to the document.

       

      This is the section of code in the .jsx file that is generating the error; line 204 is generating the error

       

      Screen Shot 2015-04-01 at 10.54.35 AM.png

      I've checked both theTemplate and myDocument objects at the time of execution and they are both valid objects.

       

      Screen Shot 2015-04-01 at 11.39.23 AM.png

       

      I have no idea why it would throw an undefined is not an object error message? I've scoured the internet and I am unable to find anything related to this matter and the guy who wrote the scripts has left the the company. Any help in the right direction is greatly appreciated.