Save for Web Metadata Scripting
Hello everyone,
I have this script to save for web (for JPG)
I want to add in my script the line where I can choose the different Metadata options (there are 5 options).
If it can be done without ScriptListener it's even better.
here is my script:
var Name = app.activeDocument.name;
if (Name.indexOf(".") != -1 ) Name=Name.substr(0,Name.lastIndexOf("."));
filePath = app.activeDocument.path + '/' + Name + '.jpg'; //filePath has also the name in it and also the extension
var options = new ExportOptionsSaveForWeb();
options.quality = 50;
options.format = SaveDocumentType.JPEG;
options.optimized = true;
var doc = app.activeDocument
doc.exportDocument(File(filePath),ExportType.SAVEFORWEB,options);


