Illustrator jsx scripts

Explorer ,
Dec 10, 2021 Dec 10, 2021

Copy link to clipboard

Copied

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?

TOPICS
Scripting

Views

77

Likes

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 ,
Dec 10, 2021 Dec 10, 2021

Copy link to clipboard

Copied

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

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

 

Likes

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
Adobe Community Professional ,
Dec 10, 2021 Dec 10, 2021

Copy link to clipboard

Copied

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.

Likes

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
Adobe Employee ,
Dec 10, 2021 Dec 10, 2021

Copy link to clipboard

Copied

LATEST

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

Likes

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