Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

Move xml element into Lib Item

$
0
0

Hi,

 

I'm currently trying to build a script to move a ELEMENT  into anchored objects with a specific object style.

 

Here's my Script

 

myXMLElements = myGetXMLElements("//div[@class='boxed-text']");

---

---

***

---

myAnchorFrame = myLib.assets.item("Box").placeAsset(myElement.insertionPoints[0])[0];

//    myAnchorFrame = myLib.assets.item("Box").placeAsset(myXMLElements[i].insertionPoints[ 0])[0];

 

 

    myElement.move(LocationOptions.after, myAnchorFrame.textFrames[0].insertionPoints[0]);

 

ERROR: The element can not moved to the destination

 

any idea.

 

Hurix


Viewing all articles
Browse latest Browse all 15932

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>