Gimp and Photoshop scripts have errors and I'm unable to run them.
I'm not an expert in python or jsx
I tried to run GIMP script but i couldn't because gimpfu was not idented. I worked on it and idented the code, fixed the bugs in gimpfu and tried again, but gimp.pyd dll couldn't be loaded. I stoped triying there.
So i decided to use photoshop...
but it didn't work either.
first of all i had to add this line at the very top to the script:
"#target photoshop"
later the script didn't run because photoshop cs6 doesn't support this function.
executeAction:
line85- executeAction(stringIDToTypeID( "rasterizeAll" ), undefined, DialogModes.NO);
Reference: