Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe Photoshop png save option photoshop script issues

  • png save option photoshop script issues

    Posted by David Bland on July 25, 2014 at 10:57 am

    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

    David Bland replied 12 years, 1 month ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy