Create a snapshot and return to snapshot, using Applescript?
I'm just trying to create an applescript that will allow me to create a snapshot in my history and then later in the script select that history state/snapshot?
I'm just trying to create an applescript that will allow me to create a snapshot in my history and then later in the script select that history state/snapshot?
You should be able to do this using the DOM in AppleScript or JavaScript…
tell application "Adobe Photoshop CS5"
tell the current document
set hS to current history state
change mode to Lab -- do whatever your stuff is…
set current history state to hS
end tell
end tell
var doc = app.activeDocument;
var hS = doc.activeHistoryState;
doc.changeMode( ChangeMode.LAB );
app.refresh();
doc.activeHistoryState = hS;
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.