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

Script warning

Guest
Jul 30, 2012 Jul 30, 2012

Copy link to clipboard

Copied

Hi,

I've made a script that opens a panel at Illustrator startup.

From that panel I can execute other jsx scripts by clicking on buttons, but there's a warning message that popups everytime I click a button...

You are about to run a script in Adobe Illustrator CS5. You should only run scripts from trusted sources. Do you want to run the script?

Is it possible to avoid that warning ??

I've tried with

app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;

but it doesn't work

Thanks for your help

TOPICS
Scripting

Views

1.7K

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

Enthusiast , Jul 30, 2012 Jul 30, 2012

You are using File.execute() to run your scripts, right?

The Toolkit treats the user's Documents/Adobe Scripts folder, however, as a trusted location; when you double-click a JSX file in that folder, the Toolkit does not display the security alert.

----From JavaScript Tools Guide

So you need to put your scripts into Documents/Adobe Scripts folder to aviod that warning.

But you can use other way to run script: $.evalFile(), maybe should along with BridgeTalk as you are using a "palette" type panel.

Votes

Translate

Translate
Adobe
Enthusiast ,
Jul 30, 2012 Jul 30, 2012

Copy link to clipboard

Copied

You are using File.execute() to run your scripts, right?

The Toolkit treats the user's Documents/Adobe Scripts folder, however, as a trusted location; when you double-click a JSX file in that folder, the Toolkit does not display the security alert.

----From JavaScript Tools Guide

So you need to put your scripts into Documents/Adobe Scripts folder to aviod that warning.

But you can use other way to run script: $.evalFile(), maybe should along with BridgeTalk as you are using a "palette" type panel.

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
Guest
Jul 30, 2012 Jul 30, 2012

Copy link to clipboard

Copied

LATEST

Damn, i tried to put them in "Adobe Illustrator CS5/Presets.localized/..." but not in "Documents/Adobe Scripts"...

Thanks a lot

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