Save.onClick = function()
{
if ( app.document.selections.length == 1 )
{
save(app.document.selections[0],
reselectFiles();
}
else
{
alert("Save only for one file", "Error", errorIcon)
}
}
Save.addEventListener('click', someName);
document.addEventListener('keydown', function(evt){
if (evt.key === 'F3') someName();
});