Skip to main content
Known Participant
December 10, 2021
Question

Illustrator jsx scripts

  • December 10, 2021
  • 2 replies
  • 1018 views

In CC 2022, I am getting the warning "You are about to run the script contained in the file "(filename)". Are you sure you want to do this? Or, select Learn more for information on using scripts in Illustrator and disabling this message."  Based on the "Learn more" option and some other message threads, it says you can put your script in a specific folder but I have a bunch of unique scripts that I want to run through that are used only once.  Photoshop has an option to disable a similar warning but putting a PSUserConfig.txt file with a certain value in the photoshop settings folder.  Does Illustrator have a similiar option to allow any jsx file to execute?

This topic has been closed for replies.

2 replies

Anshul_Saini
Community Manager
Community Manager
December 10, 2021

Hi there,

 

Sorry about the trouble. If you are using the Logi Options app. Would you please update the app & check as Logitech fixed this issue in the September update? I will be looking forward to your response.

 

Regards,

Anshul Saini

lg84Author
Known Participant
December 10, 2021

I followed the instructions from this thread but I just added the code below to one of my scripts and now it doesn't seem to warn me about any of my .jsx files. I'm curious what this does and if it can be controlled in the UI somewhere.

 

https://community.adobe.com/t5/illustrator-discussions/illustratorgc-jsx-script-error-while-launching-illustrator-25-3/m-p/12403507/page/7#M292413

app.preferences.setBooleanPreference("ShowExternalJSXWarning", false);

 

CarlosCanto
Community Expert
Community Expert
December 10, 2021

it does what it says, it stops showing external scripts warnings. External means jsx files in folders other than the default adobe "safe" folder.

 

the settings gets saved in the Illustrator preferences files. If you reset your preferences, the warning will come back.

 

and no, it's not accessible through the UI. You could edit the preferences file manually if you wish but the script does it faster.