1 Reply Latest reply on Mar 24, 2015 9:10 PM by tanujad54435002

    I want to find the image tag name from Image layer name InDesign JavaScript?

    dd53462751 Level 1

      I want to find the image tag name from Image layer name InDesign JavaScript?

        • 1. Re: I want to find the image tag name from Image layer name InDesign JavaScript?
          tanujad54435002 Level 1

          Hi,

           

           

          You can use following script to fetch image tag name and the layer name on which it lie:

           

           

          var imgBox = app.activeDocument.rectangles // fetch all rectangular frames from the active document

          for(var i = 0; i< imgBox.length; i++)

          {

           

           

           

           

            if(null != imgBox[i].associatedXMLElement )

                  {

                      var b = imgBox[i]

                     alert("Image tag name "+imgBox[i].associatedXMLElement.markupTag.name + "\n exist on layer " + imgBox[i].itemLayer.name)

                  }

          }

           

           

          Hope this would help you to resolve your problem.