Added in 2.3


Returns the download name during a on DOWNLOAD event.


Returns information about a the Nth download.


name - Name to lookup, can be a wildcard.
[N} - If N = 0, number of matches, otherwise the Nth match. (optionally)


.name - Name of the download.
.file - Filename to save as.
.url - The url to download.


; Print number of downloads.
//echo -ag $download(*, 0)

; Print the first download.
//echo -ag $download(*, 1)