FORUMS: list search recent posts

png save option photoshop script issues

COW Forums : Adobe Photoshop

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
David Bland
png save option photoshop script issues
on Jul 25, 2014 at 10:57:52 am


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)

//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!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 All Rights Reserved