Photoshop Script: exportDocument

I want to save my image as transparent PNG and wrote a script that suddenly stopped working. I get this error message: Photoshop 11.0.2 error when executing exportDocument

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 this? Or any other solutions to save docRef as transparent PNG?

+5
source share
2 answers

Phew Solved ^^

The path does not exist and this error is a standard error. Pretty confusing ...

+3
source

The folder path was a problem, I copied the folder path from Windows Explorer it looks like

"C: \ Users` \ Dropbox \ android_work \ 06_Game_tests \ car race verti \ 04 testing"

Internet broser enter

":///C:/Users/% 60/Dropbox/android_work/06_Game_tests/ %20race %20verti/04 %20testing/"

i

"C:/Users/% 60/Dropbox/android_work/06_Game_tests/ %20race %20verti/04 %20testing/"

,

+1

All Articles