View Single Post
  #105  
Old 28.05.2017, 16:47
PeTaKo
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by mgpai View Post
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.
Attached Thumbnails
metadata.JPG  
Reply With Quote