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

File > Scripts > Other Scripts... Menu doesn't work

Explorer ,
Apr 14, 2023 Apr 14, 2023

Copy link to clipboard

Copied

A few members of my team are having trouble running scripts, while others are not having problems. The members with problems became unable to run any scripts using the File > Scripts > Other Scripts... menu. Even the most basic 1-line script consisting of a single alert dialog fail and return the same error:

"Internal Script Execution Error"

 

Everyone is using Illustrator 27.0. Users on both windows and mac machines were able to run scripts with no problem. So far, I know one thing in common between the users with problems is that they're on iMacs, but I don't know if every iMac user is having the same problem.

 

We did eventually find that if we install the scripts into illustrator's script folder and restart the app, they are able to exectute the scripts directly from the menu. So they haven't lost all function, just the ability to select scripts in other locations.

 

I'm still trying to narrow down exactly when this problem appeared and who it affects but any insight into the cause would be helpful.

TOPICS
Bug , Scripting

Views

859

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

Community Expert , Apr 15, 2023 Apr 15, 2023

I was thinking the same thing, Monika. The issue may seem more confusing if the act of copying the script into the /Presets/Scripts folder in Applications changed the file permissions (in which case it would have asked user to authenticate as admin). That alone might explain your results.

 

I did the following test: saved a script on my Desktop., then changed the file's owner to another user account (not me) and removed other access privileges. Get Info looked like this:

Screenshot 2023-04-16 at 09.02.18.png

Now when I run this scr

...

Votes

Translate

Translate
Adobe
Community Expert ,
Apr 15, 2023 Apr 15, 2023

Copy link to clipboard

Copied

MacOS is very peculiar about user privileges. Does Illustrator have full disk access?

Exactly where are those scripts located?

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 ,
Apr 15, 2023 Apr 15, 2023

Copy link to clipboard

Copied

I was thinking the same thing, Monika. The issue may seem more confusing if the act of copying the script into the /Presets/Scripts folder in Applications changed the file permissions (in which case it would have asked user to authenticate as admin). That alone might explain your results.

 

I did the following test: saved a script on my Desktop., then changed the file's owner to another user account (not me) and removed other access privileges. Get Info looked like this:

Screenshot 2023-04-16 at 09.02.18.png

Now when I run this script in Illustrator using Other Script... the script wouldn't run. (In my case it gave me no error message at all though.)

 

But then I copied the script file into Applications/Adobe Illustrator/Presets/Scripts and MacOS asked me to authenticate, which I did. And now Get Info shows this:

Screenshot 2023-04-16 at 09.04.53.png

It has made me the file's owner, and now the script runs fine, even if I move it and use Other Script menu.

 

The easiest fix is to give the script Read access to "everyone". It is also possible that your installer system may alter permissions.

- Mark

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 ,
Apr 17, 2023 Apr 17, 2023

Copy link to clipboard

Copied

I share scripts with the team via dropbox folder. After you brought up permissions, I started to worry that dropbox was messing around too much with permissions.

 

Turns out, the users having problems had their local folder's syncing set to online only.  Maybe they forgot about their sync settings or maybe they assumed the script file would sync automatically as documents do when you open them.

 

Everything is working now.

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 ,
Apr 17, 2023 Apr 17, 2023

Copy link to clipboard

Copied

LATEST

Ah! That makes perfect sense. Nothing we could have known here, but nice to have closure on it! Thanks for letting us know.

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