-
png save option photoshop script issues
Hi,
I’m trying to set up a script to save a .psd file with a cutout in it as a png with a dialog box that allows the user to put the first name, last name and team in the box and then save it in the naming convention. Apologies this is my first time doing this and have no clue what i’m doing but here is the script i have been working on:
//Define png options
pngSaveOptions = new PNGSaveOptions()
pngSaveOptions.compression=0 //(level of compression 0 .. 9 0 – without compression)
pngSaveOptions.interlaced=false//save as png with original name to specific location
activeDocument.saveAs(new File(outputFolder1 + “H2H, ” + surName + “, ” + firstName + “, ” + teamName + “.png”), pngSaveOptions)it does other stuff as well but its this bit that is going wrong, instead of taking the information i have entered in the dialog box to save the file in the naming convention i want it is instead stopiing at the save as at the folder i want the image to save in and wanting me to put the information in manually!
Hope this makes sense, any help would be hugely appreciated!
Thanks
Sorry, there were no replies found.