Revert/Undo toggle
I would like to be able to toggle between the Revert and Undo commands in a script.
Is this type of toggle possible?
Ca the executeAction below return a boolean if the Revert action is visible in the History Pallet?
//revert
executeAction( charIDToTypeID( "Rvrt" ), undefined, DialogModes.NO );
//step back 1 history state
var doc = activeDocument;
doc.activeHistoryState = doc.historyStates[doc.historyStates.length-2];
