At your own risk and peril 🙂
Make two changes to the script (save the original script of course)
1. Code replacement, original line 137
main();
on the code
main();
if (DialogModes.ALL == app.playbackDisplayDialogs) app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
2. Code replacement, original line 177
if ( DialogModes.ALL == app.playbackDisplayDialogs ) {
if (cancelButtonID == settingDialog(exportInfo)) {
return 'cancel'; // quit, returning 'cancel' (dont localize) makes the actions palette not record our script
}
}
on the code
if ( DialogModes.ALL == app.playbackDisplayDialogs ) {
if (cancelButtonID == settingDialog(exportInfo)) {
return 'cancel'; // quit, returning 'cancel' (dont localize) makes the actions palette not record our script
}
}
else {
try {
var tmp = app.activeDocument.fullName.name;
exportInfo.fileNamePrefix = decodeURI(tmp.substring(0, tmp.indexOf("."))); // 1 body part
} catch(someError) {
exportInfo.fileNamePrefix = app.activeDocument.name; // filename body part
}
}
The prefix will always be the same as the file name. The rest of the parameters, including the save path, will be recorded in your Action that calls the script from which (from the Action) you will make the droplet.
Good luck 🙂