Scripting for Smart Connection



  • Avatar
    Jens Baumgarten

    I'm actually struggling the the ManagedAdvert structure which should have an assigned pageItem. It appears that this should be pageItems, since it's an array. 


    From the doc:

    1.13 ManagedAdvert 1.13.1 Properties Table 1.13.1 ManagedAdvert properties Property Type Access Description entMetaData EntMetaData read Enterprise metadata associated with the advert. pageItem PageItem read Access to the associated InDesign pageitem object. 1


    My experience:

            for (var advertIdx=0;advertIdx<doc.managedAdverts.count();advertIdx++) {

                var advert=doc.managedAdverts[advertIdx];

                var name=advert.entMetaData.get("Core_Name");

               var pageItem1=advert.pageItem; // seems to be an array

               var pageItem2=advert.pageItem[0]; // seems to be the item


    Could you please double check this? I'm using CC 2014


  • Avatar
    Hauke Hell

    Where can I find the scripting documentation for SmartConnection 8?

  • Avatar
    Maarten van Kleinwee

    Hi Hauke,

    The scripting documentation for Smart Connection 8 can be found on our Enterprise 8 documentation page.

    Best regards,

    Maarten van Kleinwee
    Senior Technical Writer, WoodWing Software

Please sign in to leave a comment.