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.pageItems.item("photo1");
var mySnippet1 = "temp1.inds"
AllParagraphs = app.documents.stories.paragraphs;
Can anyone explain why and is there an alternative method to avoid this crash?.
From CS3 to CS4 they change some properties of object, you can debug your code in CS3 and find out what is the reason of your code, then search them at CS4 Object Model Viewer you will find the reason why you can not run your code under CS3.
In CS3, you have to select the insertion point and then place to achieve this. CS4 is a big step forward in this regard.