Copy link to clipboard
Copied
Is there a way to modify the plugin menu name at run-time?
The plugin menu I am refereing to is under File->Automate in Photoshop.
Thanks for your help.
Abdo
Copy link to clipboard
Copied
What exactly do you want to do? The plugins that show there have lines of code in them that places them in that menu. They can't be changed while PS is running. PS loads the info on startup.
Copy link to clipboard
Copied
Thanks for your prompt reply Chuck.
I know the PS loads the info on startup. My question is, is there a way to modify that menu on startup.
Any idea?
Thanks again.
Copy link to clipboard
Copied
There is no way to modify it at startup, as each entry on the list has the menu info writing into the code of the plugin, so you would have to alter all the files that you want to have listed, which, I don't think would be a smart thing to do. You can see how a file defines being listed there by looking at the script for ContactSheetII.jsx, which is in the preset/scripts folder of PS. It's the code that starts at:
// BEGIN__HARVEST_EXCEPTION_ZSTRING
Copy link to clipboard
Copied
Thanks again Chuck.
I am using the Photoshop SDK to develop the plugin. I thought there must be and API call that I would use to retrieve the plugin resource to modify that menu.
Copy link to clipboard
Copied
No there is not.
Copy link to clipboard
Copied
Thanks Lumigraphics.
Ok. That might end my search for the problem then.
I thought I would use:
PICategoryProperty and PINameProperty defined in 'pigeneral.h'
Maybe not.
Thanks for your help.
Copy link to clipboard
Copied
This is what I have in one of my regular scripts that puts it in the script menu - not the normal list, but above that. The category divides the entries, and are in alpha order.
/*
// BEGIN__HARVEST_EXCEPTION_ZSTRING
<javascriptresource>
<name>Process Images v7.1</name>
<about>Written by Chuck Uebele 2010</about>
<category>aaaThisPutsMeAtTheTopOfTheMenu</category>
</javascriptresource>
// END__HARVEST_EXCEPTION_ZSTRING
*/
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Most likely, use localization, which I'm not all that sure how it works.