Copy link to clipboard
Copied
In Action panel, in Batch , I want to choose location for source and destination. Is is possible through jsx ?
Your inputs would be appreciable.
Thanks in advance!!
It is true that ExtendScript cannot change the contents of already opened batch dialogs.
However, those properties are under the control of preferences, so you can change them via setStringPreference(PreferenceKey, value) if the dialog is not already open.
The PreferenceKey and the values that can be set are summarized in my Notion, so please check it out.
Illustrator Preferences > app.getIntegerPreference | Notion
var pref = app.preferences ;
// change 'Source' to 'Folder'
pref.setIntegerPrefer
...
Copy link to clipboard
Copied
This will not be accessable through a script.
Copy link to clipboard
Copied
It is true that ExtendScript cannot change the contents of already opened batch dialogs.
However, those properties are under the control of preferences, so you can change them via setStringPreference(PreferenceKey, value) if the dialog is not already open.
The PreferenceKey and the values that can be set are summarized in my Notion, so please check it out.
Illustrator Preferences > app.getIntegerPreference | Notion
var pref = app.preferences ;
// change 'Source' to 'Folder'
pref.setIntegerPreference('plugin/BatchAction/saveMode', 0) ;
// set source path
var srcPath = '~/Desktop/some_src_folder' ;
pref.setStringPreference('plugin/BatchAction/openDir', srcPath) ;
// change 'Destination' to 'Folder'
pref.setIntegerPreference('plugin/BatchAction/saveMode', 2) ;
// set destination path
var destPath = '~/Desktop/some_dest_folder' ;
pref.setStringPreference('plugin/BatchAction/saveDir', destPath) ;
// open batch dialog
app.executeMenuCommand('Adobe Actions Batch') ;
Copy link to clipboard
Copied
Thanks a lot @sttk3 for your help !!