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

Scripts not appearing in file menu

Explorer ,
Aug 27, 2023 Aug 27, 2023

This seems like a simple issue but I can't figure out the solution. 

I've put .jsx files in my Presets>Scripts folder, but they don't appear there after restarting the program. When I created folders within Scripts, the folders appear, but my .jsx files never do. Only the three stock scripts appear.

 

I know the scripts work because I've executed them by dragging them into Illustrator. Do they need to be reformatted or is there something else I need to do to get the scripts to appear from within my File menu? Thanks.

TOPICS
Bug , How-to , Scripting
3.2K
Translate
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

Guide , Aug 31, 2023 Aug 31, 2023

That setting is a preference, so it should stick until something bad happens to your prefs.

No need to paste the line into all scripts, before it is reached there you'd already see the dialog.

Just keep it in one separate script.

Translate
Adobe
Community Expert ,
Aug 27, 2023 Aug 27, 2023

The correct location is Presets > {Your Language folder} > Scripts. I hope you are referring to this path. Another thing that I can think of is if you are on a MAC then check if Illustrator has access to this folder or not?

-Manan

Translate
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 28, 2023 Aug 28, 2023

Hi. Yes, the file path is Presets>en_US>Scripts. I don't see any restrictions on Illustrator's access to files, but these folders are inside the application folder and the application alread shows them. I wouldn't think it would show any scripts if the application didn't have folder access.

Translate
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 28, 2023 Aug 28, 2023

Did you provide Full Disk Access to Illustrator and then check?

-Manan

Translate
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 30, 2023 Aug 30, 2023

Yes

Translate
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 30, 2023 Aug 30, 2023

After a couple hours in chat with Adobe support, they didn't resolve the problem, but they forwarded me to this page: Automation with scripts in Illustrator (adobe.com)

The suggestion is to paste this line of code into scripts, so that when a .jsx file is dragged into the program, it runs without a warning dialog box.

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

It's a small workaround, but it seems like there's some other problem besides access in system settings. Thanks for the suggestions. I'll continue to investigate it. 

Translate
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
Guide ,
Aug 31, 2023 Aug 31, 2023

That setting is a preference, so it should stick until something bad happens to your prefs.

No need to paste the line into all scripts, before it is reached there you'd already see the dialog.

Just keep it in one separate script.

Translate
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
Guide ,
Aug 31, 2023 Aug 31, 2023

Open the files in BBEdit or another code editor, copy the entire text into a new .jsx file.

If that works, and if you're curious, have a look at the Finder Info dialog. Compare to a working file.

 

- file ownership, access flags

- does it have some hidden extension beyond the .jsx ?

- is it an alias?

 

In Terminal:

$ ls -l /drag/file/to/terminal/for/its/path.jsx

Thrill seeker watch out for "xattr" on the file, e.g. start from the man page in terminal.

$ man xattr

... plenty prose to learn or skip

$ xattr -l some.jsx

There is also the "file" command.

$ file some.jsx

Yields "UTF-8 Unicode (with BOM) text, with CR line terminators" in my case.

 

In either case, not all differences are bad.

Translate
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 ,
May 18, 2024 May 18, 2024

Ever discover the solution? I'm experiencing the same problem.

Translate
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 ,
May 19, 2024 May 19, 2024

@billgregg  schrieb:

Ever discover the solution? I'm experiencing the same problem.


 

There are a couple of answers in this thread. Did you try out all of them?

Translate
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
Engaged ,
Mar 28, 2025 Mar 28, 2025
LATEST

I ran into this issue recently and found this page (and a few others like it), but none of the suggestions provided fixed the issue. 

Here's what we did to fix the issue:

In our case, this was related to the eXtended ATTRibutes (xattr) for the JSX files. (Dirk Becker alluded to it.) And it was only present on an Intel Mac, not on an M1. (In our case, they were copied — via OneDrive — from an M1 where they were working to an Intel where they failed to show up in the list.)

Looking at the file attributes via the Terminal (ls -la), you may see an ampersand (@) at the end of the permissions for the files. (e.g. -rw-r--r--@ )

 

In the Terminal, use the command "xattr -c yourfilename.jsx" — that will remove the @ from the extended attributes, and the scripts will show up on the next restart of Illustrator.

Translate
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