OnDownload, Target a specific local folder?

Hello, I’ve had success with OnDownload saving my file but it’s always in the Download Folder and I’m attempting to set it up to save to a specific folder in My Documents. I put a file path in the Target box but it is ignored. Can it be done?

Thanks,
Jim

UI.Vision OnDownload can rename the file, but the folder is always the current Chrome (or Firefox) download folder.

The reason is security. Browser extensions can not change the download folder location on the fly.

Edit: See below for two workarounds

my workaround is xtype on the download dialog:

{
“Command”: “XType”,
“Target”: “C:\Temp\test files\test_Hendrik.xlsx”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_ENTER}”,
“Value”: “”
},

You still have to turn off the save folder location in Chrome settings

Workarounds for saving different files in different folders:

  1. Use XClick and XType to automate the download dialog itself, as suggested by @noahhath

  2. Let the download in the same folder happen, and then, after the download is done, use XRUN to start a script that moves the downloaded files in their final destination folder.