Hide work layers during execution.
How may I hide work layers which are deleted at job end from showing in the layer panel? I have used atn2jsx to make a script and find that the user becomes worried about all of layer stuff showing.
RONC
How may I hide work layers which are deleted at job end from showing in the layer panel? I have used atn2jsx to make a script and find that the user becomes worried about all of layer stuff showing.
RONC
put this code at the beginning and the end of your script, it will hide the layers palette
cTID = function(s) { return app.charIDToTypeID(s); };
var desc1 = new ActionDescriptor();
var ref1 = new ActionReference();
ref1.putEnumerated(cTID('Mn '), cTID('MnIt'), cTID('Tgly'));
desc1.putReference(cTID('null'), ref1);
executeAction(cTID('slct'), desc1, DialogModes.NO);
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.