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

Trouble using stroke weight script

Explorer ,
Aug 16, 2024 Aug 16, 2024

Copy link to clipboard

Copied

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-a...

 

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?

TOPICS
Scripting

Views

161

Translate

Translate

Report

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

Explorer , Aug 16, 2024 Aug 16, 2024

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

Votes

Translate

Translate
Adobe
Community Expert ,
Aug 16, 2024 Aug 16, 2024

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

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
Explorer ,
Aug 16, 2024 Aug 16, 2024

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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
Community Expert ,
Aug 16, 2024 Aug 16, 2024

Copy link to clipboard

Copied

LATEST

Good to hear you've got it working.

Votes

Translate

Translate

Report

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