So here's my first attempt at scripting for this (and it actually seems to work just great!) I bound it to Ctrl-Shift-D to replace the default command. Thoughts/comments/etc are welcome!
Code: Select all
$numitems = get("countselected",);
foreach ($item, <get selecteditemspathnames |>) {
$type = exists($item);
if ($type==2) { //folder,etc
$isfolder = 1;
}
}
// if any folders are selected, or if the user has selected multiple items, ask the user if they want to continue
if (($numitems>1) || ($isfolder==1)) {
if (confirm("Multiple items and/or folders selected. Continue?")==1) {
#166;
}
} else {
#166;
}
XYplorer Beta Club