Hide/Show Channels Palette CS - CS5

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

Colorguy

Hide/Show Channels Palette CS - CS5

Post by Colorguy »

I'm looking for a way to hide and then reveal the Channels Palette in CS - CS5. Or for that matter, just hide and reveal all palettes. In more recent versions of PS you can simply add togglePalettes() to your script to show/hide everything although this doesn't function in earlier versions. Any ideas?

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

pfaffenbichler

Hide/Show Channels Palette CS - CS5

Post by pfaffenbichler »

Code: Select allvar idslct = charIDToTypeID( "slct" );
var desc116 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref96 = new ActionReference();
var idMn = charIDToTypeID( "Mn  " );
var idMnIt = charIDToTypeID( "MnIt" );
var idTglh = charIDToTypeID( "Tglh" );
ref96.putEnumerated( idMn, idMnIt, idTglh );
desc116.putReference( idnull, ref96 );
executeAction( idslct, desc116, DialogModes.ALL );

This should hide Channels Panel, no idea though how far back that works; and if the Channels Panel is tabbed the whole Tab Group is hidden.
Colorguy

Hide/Show Channels Palette CS - CS5

Post by Colorguy »

Thanks! Much apprecieted. Works in CS - CS5.