Skip to main content
Participant
August 19, 2021
Question

PS script: Window extensions

  • August 19, 2021
  • 1 reply
  • 352 views

Hi all,
I am trying to write a script that would envoke an action in an installed plugin. The plugin I am trying to envoke is in window>extensions. I am not sure which function can do that. 
I thought to do it with executeMenuCommand but I didnt find the string that would provide me with that path.

 

This topic has been closed for replies.

1 reply

Legend
August 19, 2021

 

s2t = stringIDToTypeID;
(r = new ActionReference()).putName(s2t('menuItemClass'), 'Adobe Color Themes'); 
(d = new ActionDescriptor()).putReference(s2t('null'), r);
executeAction(s2t('select'), d, DialogModes.NO);

 

* this trick only works with old extensions. It do not works with new UXP plugins 

Hanen5CFCAuthor
Participant
August 19, 2021

Hi,
thanks for the answer. Do you maybe know what the I would have to put in the putName function for the Window>Extensions (Legacy) bar?

Legend
August 19, 2021

Name of the extension you want to run (as it appears on the menu). Code above starts "Adobe Color Themes" extension