Skip to main content
Inspiring
August 16, 2024
Answered

Trouble using stroke weight script

  • August 16, 2024
  • 1 reply
  • 462 views

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?

This topic has been closed for replies.
Correct answer Connor24501606tet8

Ran into the same problem but was able to get it by dropping it into the scripts folder. Thanks for your help.

1 reply

Ton Frederiks
Community Expert
Community Expert
August 16, 2024
Connor24501606tet8AuthorCorrect answer
Inspiring
August 16, 2024

Ran into the same problem but was able to get it by dropping it into the scripts folder. Thanks for your help.

Ton Frederiks
Community Expert
Community Expert
August 16, 2024

Good to hear you've got it working.