Copy link to clipboard
Copied
I have lot of files under Photoshop/Presets/Scripts/myplugin.
Here myplugin has a main.jsx file and other helping files. I do not want to list down all the files on 'File > Scripts > ....', instead I just want to show only File > Scripts > myplugin
How can I do that? Is there any way using <javascriptresource> tag?
Copy link to clipboard
Copied
You can give the helping scripts the extension jsxinc, or you can put a "~" as suffix for the scripts you don't want to be shown. Also you can create a category with the <javascriptresource> tag so all your scripts that are shown in the File>Scripts menu will be delimited from other scripts:
/*
<javascriptresource>
<name>name the menu</name>
<category>MyCategory</category>
</javascriptresource>
*/
Also if you like you can take a look at this script I've done, maybe it will suit you to access the scripts you have done faster with shortcuts:
Copy link to clipboard
Copied
You can also add the scripts that you don't want to show in the menu into another folder called Photoshop/Presets/Scripts/myplugin/my plugin Scripts Only. JSX files inside folders that end in "Scripts Only" will not list the Photoshop scripts menu. The folder can be named anything in front of the Scripts Only part. I have been using this method for years with no issues.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more