Copy link to clipboard
Copied
If I run these scripts, I remember more than 10 steps in the history. . . What if I want only one record to be logged when I run the scripts? https://drive.google.com/file/d/19pPaFUsUOS5MmiwkPTkLMHynLokrhV9i/view?usp=sharing
You need to wrap the entire code into a function:
function yourFunctionName() {
// Your code here
}
Then you need to call the function using suspendHistory:
app.activeDocument.suspendHistory("Single History Step Name...", "yourFunctionName()");
https://theiviaxx.github.io/photoshop-docs/Photoshop/Document/suspendHistory.html
Copy link to clipboard
Copied
You need to wrap the entire code into a function:
function yourFunctionName() {
// Your code here
}
Then you need to call the function using suspendHistory:
app.activeDocument.suspendHistory("Single History Step Name...", "yourFunctionName()");
https://theiviaxx.github.io/photoshop-docs/Photoshop/Document/suspendHistory.html
Copy link to clipboard
Copied
Thank you so much Sir @Stephen Marsh
Copy link to clipboard
Copied
You're welcome!