illustrator-scripts icon indicating copy to clipboard operation
illustrator-scripts copied to clipboard

Illustrator CC can't open scripts: Error 23: & does not have a value.

Open ollykaollyka opened this issue 3 years ago • 4 comments

Hi! I'm having an issue - Illustrator won't open the scripts, saying there's an error. I've tried to run a bunch of scripts: fillinger, harmonizer, randomus, replaceItems - same thing. The message I get from Illustrator when trying to run the Fillinger script is:

Error 23: & does not have a value. Line: 89 ->

2 or more simple objects selected Tried in Illustrator CC 22.1 and Illustrator CC 25.2 Windows 10

I hope somebody can help with this. Thank you!

ollykaollyka avatar Feb 10 '21 20:02 ollykaollyka

I am having the same issue

jrwalzer avatar Mar 25 '21 23:03 jrwalzer

+1

GusarovArtem avatar Feb 12 '23 13:02 GusarovArtem

if you tried "JSON.parse(data)" you need to add such line:

jsonFile.open("r")

before parsing

function readJsonFile(jsonFile) {
    jsonFile.open("r") // without this line you could have: `Error 23: & does not have a value`
    var data = jsonFile.read()
    jsonFile.close()
    return JSON.parse(data)
}

GusarovArtem avatar Feb 12 '23 13:02 GusarovArtem

The current versions of the scripts in the repository do not have this bug. I ran it on Mac OS and Windows 7 / 10.

creold avatar Feb 12 '23 16:02 creold