Using CS5, I would like to remove all the variables that show up in a document variables panel, so that new ones can be put in without any errors happening. But, the act of removing them causes an Illustrator error. Upon closer inspection in the OMV, document.variables is a read-only item. Why is there a removeAll(), at all, or are there any other ways to achieve this goal?
I have had the same issue with other collections raising errors using removeAll() as well, I just tried removing all dataSets and that works fine, so not all readOnly collections have this problem.
for variables, loop through them and remove them one by one.