Skip to main content
DBarranca
Legend
April 23, 2011
Question

<category> tag in <javascriptresource>

  • April 23, 2011
  • 1 reply
  • 1732 views

Hello,

I've 2 scripts in the Photoshop CS5/Presets/Scripts/ folder.

The first one starts like this:

/*

<javascriptresource>

<name>$$$/RBG/Alce21_Batch=RBG - ALCE Automation Service 2.1</name>

<menu>filter</menu>

<category>RBG</category>

<enableinfo>true</enableinfo>

</javascriptresource>

*/

The second one:

/*

<javascriptresource>

<name>$$$/RBG/Alce21=RBG - ALCE 2.1</name>

<menu>filter</menu>

<category>RBG</category>

<enableinfo>true</enableinfo>

<eventid>07d2f0b0-653d-11e0-ae3e-0800200c9a66</eventid>

<terminology><![CDATA[<< /Version 1

                         /Events <<

                          /07d2f0b0-653d-11e0-ae3e-0800200c9a66 [($$$/RBG/Alce21=ALCE 2.1) /imageReference <<

                          /radius [($$$/Actions/Key/GaussianBlur/Radius=Radius) /uint]

                           /opacity [($$$/RBG/Opacity=Opacity) /uint]

                           /turbo [($$$/RBG/Turbo=Turbo Boost) /boolean]

                          >>]

                         >>

                      >> ]]></terminology>

</javascriptresource>

*/

Is the <category> tag supposed to group the two in the same RBG subfolder in the Filter menu?

It isn't working to me (PS CS5, OSX 10.6.7). I've tried to let them go to the automate folder as well, to test grouping there, and still no luck.

Is this a known bug or maybe I'm doing something wrong...?

Thanks in advance,

Davide

This topic has been closed for replies.

1 reply

JJMack
Community Expert
Community Expert
April 23, 2011

No

<menu>filter</menu> put the script in photoshop filter menu as a listed item

<category>group</category> will group items in a Photoshop menu together

You should see your two scipts listed in Photoshop Filter menu as items and they should be grouped together most likely at the bottom group

The second one should have code in it to make it a Plug-n to record and retrieve its dialog setting into and from actions. Like Adobe Fit Image.jsx.

JJMack
DBarranca
DBarrancaAuthor
Legend
April 23, 2011

I understand: so <category> it's not supposed to create a sub-menu, right? It simply keeps the items close in the menu position. Well, better than nothing...!

The second one should have code in it to make it a Plug-n to record and retrieve its dialog setting into and from actions. Like Adobe Fit Image.jsx.

Yes indeed, it costed me some extra head-scratching but eventually I made it

Thanks for the clarification,

Davide