First I tried the copy sendmail
command, but the issue is, that the subject and mail is filled with useless information. Seems to come from Windows itself.
So I wrote a new jscript button, but I'm not sure if the code is good or should be improved. But the button works like expected.
Escpecially I'm wondering, why the atEnd() has always the value "0" instead of true and false.
There must be no "," at the end of the value atm. So the first idea was to add the item path and "," as long as the enumerator is not pointing to the last element and for the last element only the item path. But seems not to be possible, so I wrote a workaround (last element in the string is removed):
function OnClick(clickData) {
var cmd = clickData.func.command;
var tab = clickData.func.sourcetab;
var atm = "";
cmd.deselect = false;
DOpus.ClearOutput();
for (var e = new Enumerator(tab.selected_files); !e.atEnd(); e.moveNext()) {
var item = e.item();
atm += item + ",";
}
var atm2 = atm.substr(0, atm.length - 1);
cmd.RunCommand('thunderbird -compose "attachment=\'' + atm2 + '\'"');
}
When the code is good I can share the button. Perhaps useful for other Opus user
To not forget it I add here the available command line arguments for thunderbird: Command line arguments - Thunderbird - MozillaZine Knowledge Base