Download file from URL

I see the “DemoDownload” script uses …

click | linkText=XModules for Windows |
onDownload | DownloadTest2_${todaydate}.exe | True

… to download files.

That method only works if the page that’s open in the browser has a link to the file. Is there a way for the script to download a file from a web server if the page does not have a link to that file? In other words, is there a way to explicitly specify the file’s full URL within the script and then download the file directly?

Just use OPEN for this:

{
  "Name": "directdownload",
  "CreationDate": "2020-3-6",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://www.7-zip.org/a/7z2000-x64.exe",
      "Value": ""
    }
  ]
}