alexander-ladygin / illustrator-scripts

Adobe Illustrator scripts
MIT License
1.02k stars 324 forks source link

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

Open ollykaollyka opened 3 years ago

ollykaollyka commented 3 years ago

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!

jrwalzer commented 3 years ago

I am having the same issue

GusarovArtem commented 1 year ago

+1

GusarovArtem commented 1 year ago

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)
}
creold commented 1 year ago

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