3 Replies Latest reply on May 28, 2010 1:23 PM by Dirk Becker

    [JS CS3/CS4] Making embedded graphic "inline"

    Skempy Level 1



      I want to take a graphic that is in a separate (labeled) graphic frame and move it within some text as an anchored object.


      I can do this easily by geting the link from the image and placing it at my insertion point.


      var myImage = app.documents[0].pageItems.item("photo1").images[0];


      BUT how do I do this if my original graphic is embedded and the linked file no longer available?


      Do I have to unembed thegraphic to a temporary location, use my script above and then embed and remove the original or is there a simpler way?


      I expect to be told that I shouldn't be embedding graphics but this what I have to work with.





      Simon Kemp.