I have a beforeSave applescript (saved in "Applications:Adobe InDesign CS5.5:Scripts:Event Scripts") that used to work in CS3.
Along with a list of other things it checks to see if a page needs a crossword and if it does it brings it in.
In CS5.5 it happily does the list of things but does not do the crossword. I've managed to track down where the error occurs, it is thrown when
it encounters the place command with the following error: "Cannot delete the target of an active script event".
Herewith a simple version that will show it:
try
setfile2placeto "path:to:crosswrd"
tellapplication "Adobe InDesign CS5.5"
telldocument 1
tellpage 1
placefilefile2placeonpage item "ThePic"
endtell
endtell
endtell
onerrorerrmsg
display dialog "beforeSave got this error: " & errmsg
endtry
Have tried running it in another script (both applescript and extendScript) from within the beforeSave script but still the same problem.