Copy link to clipboard
Copied
How to run action Batch command using Javscript by passing Source and Destination parameter
Copy link to clipboard
Copied
To my knowledge this is only possible via external os-level scripting languages such as AHK, or VBS or AppleScript.
The good news is that it appears to be possible to at least set some of the Batch Process parameters by setting preferences.
It may be possible to set the needed items via script by setting the preferences and having the Batch Process dialog be pre-populated with data. However, there's still the matter of sending the Enter key to the dialog to launch it, hence the need for a scripting language that is able to send keys.
Copy link to clipboard
Copied
If I understand you right.
One possible way:
create a *.txt file with source and destination parameter and read the contents of this file with Javascript.