Hide/Show Channels Palette CS - CS5
Hide/Show Channels Palette CS - CS5
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?
Hide/Show Channels Palette CS - CS5
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.
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.