2 Replies Latest reply on Apr 21, 2017 12:33 AM by philipc45437321

    How to use a single undo to undo a script which contains multiple sub-actions.

    philipc45437321 Level 1


      I had expected there to be lots of people asking this so that suggests that it's either very easy and I am being dumb or it's very hard and that's why no one is trying it.


      I would like to run a Javascript function in Photoshop which contains multiple sub-actions. The script runs fine but when I undo I have to undo once for each sub-action to get back to me original state.


      How do I run a script so that the entire script counts as a single undo?