[JS CS3 and CS4] Place snippet at insertionPoint fails in CS3 but works in CS4
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.