Does the user have rights to write to the root of the disk C:?
Try running photoshop "as administrator".
Thanks for the reply, yes PS is run as admin and the account is an admin account with full access.
It's strange. At me your script works in CS6 and СС 2018 without errors. Please show the screenshot of the error window. And tell me how you run the script.
Yes - same opinion as r-bin!
Tested with a sub folder in the path?
Here's the error message: Imgur: The magic of the Internet
I'm running in by going to scripts -> browse -> file.js
This in line 5 works: var saveFile = File('/C/Users/DW/Pictures/channel/' + i + '.png'); works.
var saveFile = File('/C/' + i + '.png') Does not work.
I'm trying to make it work on anyone's computer without having to modify the JS so I was just going to dump it onto the C drive which everyone should have.
Can you save the file to drive C: manually through the menu File->Save fow Web... ?