2 Replies Latest reply on Jul 1, 2009 4:44 AM by Dave Saunders

    [JS CS3 and CS4] Place snippet at insertionPoint fails in CS3 but works in CS4

    *Skemp*

      The following code will place a snippet at an insertion point to create an anchored object in CS4 but in CS3 it causes a crash.

       

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

      var mySnippet1 = "temp1.inds"

      myImage.exportFile(ExportFormat.indesignSnippet, File(mySnippet1));

      AllParagraphs = app.documents[0].stories[0].paragraphs;    

      AllParagraphs.item(i).insertionPoints[0].place(mySnippet1);

       

       

      Can anyone explain why and is there an alternative method to avoid this crash?.

       

       

      Thanks

       

       

      Skemp.