Object is invalid error after changing contents of characters
Hi,
It doesn't seem to be a problem changing a range of characters of a paragraph with ".contents = someString". A small test script confirmed this. But in my main script, immediately after I have used this line in a while loop:
textObj.characters.itemByRange(p_start +1, p_start + textStr[p].length).contents = dataStr[p];
the textObj becomes an invalid object.
(The task is to replace ranges of characters within a paragraph with a translation.)
Any clue?
Thanks!
