Skip to main content
photogyulai
Inspiring
February 15, 2016
Answered

How to open or close panels/window with a script?!

  • February 15, 2016
  • 1 reply
  • 2554 views

Hey Guys!

Im wondering... is it possible?!  I tried on google but no luck!

I tried script listener but not recorded.

I wanted to open and/or close panels from script. Smthing like >> when you push a button then the Action panel opens up.

Panel i mean >> the list under the Window menu in Photoshop

Stlye - Action - History - Layers etc.

Any help would be appreciated!!

Thanks

Ben

This topic has been closed for replies.
Correct answer

Thanks tssee!
it works but only the closing part....

app.runMenuItem (stringIDToTypeID ("closeActionsPanel"));  << this closes the action panel.. and as You said

app.runMenuItem (stringIDToTypeID ("closeHistoryPanel"));  << this ones closes the history  :-)


BUT

this

app.runMenuItem (stringIDToTypeID ("openActionsPanel"));

app.runMenuItem (stringIDToTypeID ("OpenActionsPanel"));

app.runMenuItem (stringIDToTypeID ("open Actions Panel"));

would not open the action panel... i also tried history...

Any ideas how to open it... what is the keyword?!?
Thank you!


ps-scripts.com • View topic - Hide/open UI windows with JS

To open the actions panel (palette), this works for me in CS4:

app.runMenuItem (stringIDToTypeID ("closeActionsPanel"));

app.runMenuItem (stringIDToTypeID ("toggleActionsPalette"));


HTH,

--Mikaeru

1 reply

Chuck Uebele
Community Expert
Community Expert
February 16, 2016

Is there any reason to do this? I mean, the whole purpose of the script is to automate PS, so if you're bringing up menu items, it's kind of self defeating? What are you trying to do?

tssee
Inspiring
February 16, 2016

This closes the actions pane

changing the words can also close other

app.runMenuItem (stringIDToTypeID ("closeActionsPanel"));

photogyulai
Inspiring
February 16, 2016

Thanks tssee!
it works but only the closing part....

app.runMenuItem (stringIDToTypeID ("closeActionsPanel"));  << this closes the action panel.. and as You said

app.runMenuItem (stringIDToTypeID ("closeHistoryPanel"));  << this ones closes the history  :-)


BUT

this

app.runMenuItem (stringIDToTypeID ("openActionsPanel"));

app.runMenuItem (stringIDToTypeID ("OpenActionsPanel"));

app.runMenuItem (stringIDToTypeID ("open Actions Panel"));

would not open the action panel... i also tried history...

Any ideas how to open it... what is the keyword?!?
Thank you!