View Single Post
  #1  
Old 23.11.2017, 15:30
crashme crashme is offline
Modem User
 
Join Date: Nov 2017
Posts: 3
Default Getters on archive return null in EventScripter

Hi guys,

I recently discovered the EventScripter feature of JDownloader. However the following code fails, archive is undefined and as a result, all getters just return null.

Code:
var paths = archive.getExtractedFilePaths();
if (paths !== null)
    writeFile(JD_HOME + "/log.txt", JSON.stringify(paths), false);
Any help? The script itself should be configured correctly, trigger is "ON_ARCHIVE_EXTRACTED".

Kind regards
Reply With Quote