View Single Post
  #593  
Old 17.02.2019, 07:25
almanteka almanteka is offline
Baby Loader
 
Join Date: Feb 2019
Posts: 9
Default

Quote:
Originally Posted by mgpai View Post
Code:
// Move archive files after extraction
// Trigger: Archive Extraction Finished

var links = archive.getDownloadLinks() || [];

links.forEach(function(link) {
    var filePath = getPath(link.getDownloadPath());
    filePath.moveTo(filePath.getParent().toString().replace("JD Downloads", "!TRASH!"));
});
WOW! you're the scripts hero! test with single and multiple files worked perfectly! thanks for all your help!

Last edited by almanteka; 17.02.2019 at 08:06. Reason: tested with multiple files too!
Reply With Quote