WoodWing Help Center

Scripting for Smart Connection

Scripting for Smart Connection

Many aspects of the Smart Connection client application are scriptable using JavaScript. The Scripting and Events Guide contains examples that show how to script the Smart Connection specific part of the scripting object model. It should be used as a companion to InDesign’s Scripting Guide and the scripting model presented by the Adobe ExtendScript Toolkit.

Scripting and Events Guide for Adobe CC

This guide provides details on the extensions to the scripting model that Smart Connection adds to InDesign CC, InCopy CC and InDesign Server CC.

Version 1.12 (16 January 2015, 640KB, PDF format)

Scripting and Events Guide for Adobe CC 2014

This guide provides details on the extensions to the scripting model that Smart Connection adds to InDesign CC 2014, InCopy CC 2014 and InDesign Server CC 2014.

Version 1.6 (8 February 2017, 480KB, PDF format)

Scripting and Events Guide for Adobe CC 2015

This guide provides details on the extensions to the scripting model that Smart Connection adds to InDesign CC 2015, InCopy CC 2015 and InDesign Server CC 2015.

Version 1.1 (8 February 2017, 480KB, PDF format)

Scripting and Events Guide for Adobe CC 2017

This guide provides details on the extensions to the scripting model that Smart Connection adds to InDesign CC 2017, InCopy CC 2017 and InDesign Server CC 2017.

Version 1.0 (14 July 2017, 575KB, PDF format)

Document history

  • 14 July 2017: Added Scripting and Events Guide for Adobe CC 2017.
  • 8 February 2017: Guide for Adobe CC 2014: Added sections “2.2.28 afterCreateEnterpriseImageFromElvisImage” and “5. Overrule adding of created Enterprise image to Dossier”
  • 8 February 2017: Guide for Adobe CC 2015: Added sections “2.2.28 afterCreateEnterpriseImageFromElvisImage” and “5. Overrule adding of created Enterprise image to Dossier”
  • 18 November 2016: Added Scripting and Events Guide for Adobe CC 2015.
Was this article helpful?
0 out of 0 found this helpful / Created: / Updated:
Have more questions? Submit a request

3 Comments

  • 0
    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

    Jens

    Edited by Jens Baumgarten
  • 0
    Avatar
    Hauke Hell

    Where can I find the scripting documentation for SmartConnection 8?

  • 0
    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.