Quantcast
Channel: Adobe Community: Message List - Photoshop Scripting
Viewing all articles
Browse latest Browse all 27456

Re: suspendHistory breaks activeHistoryState

$
0
0

FYI,

Michel Mariani suggested this workaround:

 

var doc = app.activeDocument; 
$.writeln(doc.activeHistoryState); // [HistoryState DemoFile.jpg]
doc.suspendHistory ("TEST", "doc.activeLayer.name = 'Something'; doc.activeLayer.name = 'SomethingElse';");
app.refresh();
$.writeln(doc.activeHistoryState); // [HistoryState TEST] 

 

It adds the usual, unwanted delay app.refresh adds, but at least the history state is the right one. Thanks Michel!

 

Davide Barranca

---

www.davidebarranca.com

www.cs-extensions.com


Viewing all articles
Browse latest Browse all 27456

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>