oh yeah, i totally forgot that part! 1) copy that text to a notepad file. 2) save the file somewhere with a name "myscript.jsx" it is javascript so needs jsx extension. 3) in shop, make an action, record- 4) file menu > scripts > browse > 5) pick the file you saved, it will run the script, so pick the folder and wait for…