4 Replies Latest reply on Mar 10, 2010 9:53 AM by TestOCM

    [JS] Insert Image

    TestOCM

      Hey Guys,

       

       

      var myDoc = app.activeDocument;

      var afile = File("/Desktop/a/image/a.jpg")

       

      if (!afile.exists )

      {

      alert ("Image file missing...")

      }

      else

      {

      myDoc.object.item("a").parentStory.insertionPoints.item(-1).place(afile);

       

      }

       

       

       

      I'm using this script to place test files on to active page ... I'm trying to modify this script to place images in to labeled boxes - but I guess I'm missing something here ...

       

      Thx for help