I want to save my image as a transparent PNG and wrote a script which suddenly stopped working. I get this error message:
docExportOptions = new ExportOptionsSaveForWeb
docExportOptions.format = SaveDocumentType.PNG //-24 //JPEG, COMPUSERVEGIF, PNG-8, BMP
docExportOptions.transparency = true
docExportOptions.blur = 0.0
docExportOptions.includeProfile = false
docExportOptions.interlaced = false
docExportOptions.optimized = true
docExportOptions.quality = 100
docExportOptions.PNG8 = false
docRef.exportDocument (theFile,ExportType.SAVEFORWEB,docExportOptions)
Any ideas how to fix that? Or any other solutions to save the docRef as a transparent PNG?
Scripting is similar, but instead of doing these steps in Photoshop, you write them down as lines of code. Most actions that you do in Photoshop have their own script equivalent as a function. Let's say you are creating an action that scales a document to 150% of its original size.
Actions are saved by default in the Photoshop > Presets > Actions folder. Review the options and click OK. Open a file with which to record the action.
1 Correct answer. Restart Photoshop then go to File >> Script to access. Restart Photoshop then go to File >> Script to access.
Phew. Solved ^^
The path didn't exist and that error seems to be a standard error. Pretty confusing...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With