Skip to main content
Damon D Bell
Known Participant
November 3, 2015
Question

Close "Info" Panel with a script

  • November 3, 2015
  • 1 reply
  • 604 views

I have a script the takes a color sample when the script runs.  When that happens, it opens the Photoshop color Info panel.  Is there a way to close this with the script?

Closing it does not create a script listener event.  I checked the Adobe Javascript Reference guide as well but I don't see any reference to that either, although I may have overlooked something.

This topic has been closed for replies.

1 reply

November 3, 2015

This works for me in CS4:

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

HTH,

--Mikaeru

Damon D Bell
Known Participant
November 3, 2015

Thanks Mikaeru,

That worked to close the Info tab but the popout window stayed open with the Properties tab.  I seems like the popout window typically has both the Info and Properties tabs together.  Following the same logic, I told it to close both and then the popout window closed as well which is what I want. 

Just curious,  is this documented anywhere in Adobe's documentation?  I search but could not find this.  Is there some additional documention that I don't know about?  If so, I'd really like to get a copy.

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

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

November 3, 2015

Since I started scripting Photoshop many years ago by writing automation plugins, I think I got this information by looking at the contents of the file "PIStringTerminology.h" which is part of the SDK (Software Development Kit). All the recent SDKs are now available from Adobe Photoshop SDK | Adobe Developer Connection. The relevant file may be buried deep in the hierarchy of folders but it should be somewhere under:

.../photoshopapi/photoshop/PIStringTerminology.h

HTH,

--Mikaeru