Suppose I am trying to replace some objects by an ellipse.
findAndReplaceGraphic_centered returns an error when one of the selected objects have been renamed somehow.
If we select two objects like <Ellipse> and <Path> everything goes well.
However, if one of them has a name, like <Ellipse> and FooBar, the script returns the following error:
Error 25: Expected: ].
Line: 1
-> subArray1["object"]=[PathItem FooBar]
Suppose I am trying to replace some objects by an ellipse.
findAndReplaceGraphic_centeredreturns an error when one of the selected objects have been renamed somehow.If we select two objects like
<Ellipse>and<Path>everything goes well.However, if one of them has a name, like
<Ellipse>andFooBar, the script returns the following error: