Code: Select all
perm $lbl;
$location = "?:\";
if(!<get drop>){sel;}
$qs = "";
$qs2 = quicksearch("lbl:#$lbl /d", $location);
if ($qs2) {
foreach($line, $qs2, "<crlf>"){
$qs = $qs . $line . ";;;|";
}
$qs = $qs . "-|";
}
foreach($ext, "*.ppt*|*.xls*|*.doc*|*.pdf|*.eml") {
$qs1 = "";
$qs0 = quicksearch(":($ext) AND lbl:#$lbl /f", $location);
if ($qs0) {
foreach($line, $qs0,"<crlf>"){
$qs1 = $qs1 . $line . ";;;|";
}
}
if ($qs1) {
$qs = $qs . $qs1 . "-|";
}
}
$qs = substr($qs,,-3);
$path = popupmenu("$qs");
end (!$path);
if(exists($path)==2) {
if(!<get drop>) {
$clickMenu = <<<>>>
Go to in Pane 1|focus p1; goto "$path";|left.ico|
Go to in Pane 2|focus p2; goto "$path";|right.ico|
Go to in New Tab|tab("new", "$path");|:newtab|
-
Remove Label|tag, "$path";|:wipe|
>>>;
$sel = popupmenu($clickMenu, 6:="<crlf>", 7:="|");
if ($sel) { load $sel, , "s"; }
}
elseif(<get drop>) {
$dropMenu = <<<>>>
Copy to "$path"|foreach($item, "<get drop | >"){ copyto "$path", "$item";};|c.ico|
Move to "$path"|foreach($item, "<get drop | >"){ moveto "$path", "$item";};|m.ico|
>>>;
$sel = popupmenu($dropMenu, 6:="<crlf>", 7:="|");
if ($sel) {
load $sel, , "s";
#1001;
focus pi;
goto $path;
#1001;
}
}
} elseif (exists($path)==1) {
end (<get drop>);
$clickMenu = <<<>>>
Open|open "$path";|:go|
-
Copy Here|copyto "<curpath>","$path";|c.ico|
Copy Here as <date yyyy-mm-dd-hh\hnn\m>__*|copyas "<date yyyy-mm-dd-hh\hnn\m>__*.?", "<curpath>","$path";|c.ico|
-
Go to in Pane 1|focus p1; goto "$path";|left.ico|
Go to in Pane 2|focus p2; goto "$path";|right.ico|
Go to in New Tab|tab("new", "$path");|:newtab|
-
Remove Label|tag, "$path";|:wipe|
>>>;
$sel = popupmenu($clickMenu, 6:="<crlf>", 7:="|");
if ($sel) { load $sel, , "s"; }
}
unset $lbl;