Quote:
Originally Posted by mgpai
Code:
// Write link comments to 'csv' file.
// Trigger: "Package Finished".
var links = package.getDownloadLinks();
var data = [];
for (i = 0; i < links.length; i++) {
var link = links[i];
var comment = link.getComment();
var fileName = link.getName();
if (comment) data.push([fileName, comment].join(","));
}
if (data.length) {
var destFolder = package.getDownloadFolder() + "/";
var destFile = package.getName() + ".csv";
writeFile(destFolder + destFile, data.join("\r\n"), true);
}
|
Hi mgpai, thanks a lot for all your support.
I was wondering if there is a way to automatically add the comments in the image metadata instead of creating a csv, just like the picture i attached to this post.