Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

document.variables.removeAll()

Valorous Hero ,
Apr 21, 2015 Apr 21, 2015

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?

TOPICS
Scripting
562
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Apr 21, 2015 Apr 21, 2015

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.

Translate
Adobe
Community Expert ,
Apr 21, 2015 Apr 21, 2015
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines