How to Clear history just one log of script??
I got what I was going to do today by jsx using xtool.
I don't know how to make it recorded as a single history.
activeDocument.suspendHistory("Aaron Grimes Effect", "applyVideoExosure()");
I found this in the Adobe community, but it doesn't seem to work when I paste it into a notepad...
The code I got with Xtool is as follows.
Every time run a script, i want only one recorded under the name "clean".
cTID = function(s) { return app.charIDToTypeID(s); };
sTID = function(s) { return app.stringIDToTypeID(s); };
function ContentAware() {
// Expand
function step1(enabled, withDialog) {
if (enabled != undefined && !enabled)
return;
var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);
var desc1 = new ActionDescriptor();
desc1.putUnitDouble(cTID('By '), cTID('#Pxl'), 2);
desc1.putBoolean(sTID("selectionModifyEffectAtCanvasBounds"), false);
executeAction(cTID('Expn'), desc1, dialogMode);
};
// Fill
function step2(enabled, withDialog) {
if (enabled != undefined && !enabled)
return;
var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);
var desc1 = new ActionDescriptor();
desc1.putEnumerated(cTID('Usng'), cTID('FlCn'), sTID("contentAware"));
desc1.putBoolean(sTID("contentAwareColorAdaptationFill"), true);
desc1.putBoolean(sTID("contentAwareRotateFill"), false);
desc1.putBoolean(sTID("contentAwareScaleFill"), false);
desc1.putBoolean(sTID("contentAwareMirrorFill"), false);
desc1.putUnitDouble(cTID('Opct'), cTID('#Prc'), 100);
desc1.putEnumerated(cTID('Md '), cTID('BlnM'), cTID('Nrml'));
executeAction(cTID('Fl '), desc1, dialogMode);
};
// Set
function step3(enabled, withDialog) {
if (enabled != undefined && !enabled)
return;
var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);
var desc1 = new ActionDescriptor();
var ref1 = new ActionReference();
ref1.putProperty(cTID('Chnl'), sTID("selection"));
desc1.putReference(cTID('null'), ref1);
desc1.putEnumerated(cTID('T '), cTID('Ordn'), cTID('None'));
executeAction(cTID('setd'), desc1, dialogMode);
};
step1(); // Expand
step2(); // Fill
step3(); // Set
};
//=========================================
// ContentAware.main
//=========================================
//
ContentAware.main = function () {
ContentAware();
};
ContentAware.main();
// EOF
"ContentAware.jsx"
// EOF
