View Single Post
Old 16.02.2019, 06:06
mgpai mgpai is offline
Script Master
Join Date: Sep 2013
Posts: 628

Originally Posted by pinko View Post
I saw that one of the triggers is "A new file has been created". How would I make script, witch would be add number before name of new file. Number will be: number of files in folder+1.
The event will be triggered each time a download is finished or an archive is extracted. It will return any array of 'created' files, which will contain a single item when it is created by the download controller or single/multiple items (depends on the number of files in the archive) if it is created by the extractor. As such, the number of files in folder (assuming folder = folder on disk) will vary and might not be suitable for the task you specified.

Originally Posted by pinko View Post
Second thing: I try to create history of downloaded links, using **External links are only visible to Support Staff**..., but I get message that variable "link" is not define. What am I doing wrong?
I had immediately replied (via PM) to your email. If you still have issues running the script, find me in JD Chat.

Last edited by mgpai; 16.02.2019 at 06:15.
Reply With Quote