Trouble using stroke weight script
I found a thread where @Ton Frederiks mentioned a script for changing the weights of strokes having different original weights: https://community.adobe.com/t5/illustrator-discussions/is-there-a-way-to-increase-the-thickness-of-all-lines-in-a-group/td-p/13448305
But I'm having trouble using the script. I pasted it into a .txt file, changed the extension to .jsx, and tried opening it in AI (File>Scripts>Other Script...), but I got an error message that said:
Error 1302: No such element
Line: 2
-> var aDoc = app.activeDocument;
I also tried it as a .js file. I've attached the original .txt file (I think). Any clues as to what's going wrong here?
