Setting SaveForWeb Metadata option
Hi,
I don't see anything about this option in the docs. I'm scripting to resize and write out .png files from .psd files. I need the metadata preserved. I can do this if I first manually go into the SaveForWeb dialog and set the Metadata option to "all". However, I want to force this in the script, for other users, and in case I forget, or my options get trashed.
Here's the relevant section of the script:
exportOptions = new ExportOptionsSaveForWeb ();
exportOptions.format = SaveDocumentType.PNG;
exportOptions.transparency = true;
exportOptions.PNG8 = false;
document.exportDocument (newFile, ExportType.SAVEFORWEB, exportOptions);
document.close (SaveOptions.DONOTSAVECHANGES);
I've tried guessing at:
exportOptions.metadata = "all";
or
exportOptions.metadata = 4;
with no luck.
Any ideas? Thanks!
