Is this possible with a script?
I have lots of files I want to organise into existing subfolders, but I don't wish to navigate into and out of each subfolder in the opposite pane during each move operation.
I want to simply highlight the folder in the opposite pane that I want to move files to (without opening it), and move the highlighted files into it on a command. Ideally with a custom shortcut key.
As an additional enhancement - if multiple folders are selected/highlighted, then move the selected files to each (i.e. creating copies as required).
Many thanks for your help in advance!
Move selected file(s) to the currently highlighted folder in other pane
-
- Posts: 4
- Joined: 06 May 2022 19:13
Re: Move selected file(s) to the currently highlighted folder in other pane
Code: Select all
foreach($folder, <get SelectedItemsPathNames <crlf> i>, <crlf>, "e") {
if (exists($folder) == 2) { copyto $folder, 4:=2, 11:=0; }
}
One of my scripts helped you out? Please donate via Paypal
-
- Posts: 4
- Joined: 06 May 2022 19:13
Re: Move selected file(s) to the currently highlighted folder in other pane
Wow thank you that's amazing! Much appreciated.
-
- Posts: 4
- Joined: 06 May 2022 19:13
Re: Move selected file(s) to the currently highlighted folder in other pane
Is there a way to adapt this so that if a single folder is selected, files are MOVED rather than copied into that location?
Re: Move selected file(s) to the currently highlighted folder in other pane
Code: Select all
$dstFolders = <get SelectedItemsPathNames <crlf> i>;
if (gettoken($dstFolders, "count", <crlf>) == 1) {
if (exists($dstFolders) == 2) { moveto $dstFolders, 4:=2, 11:=0; }
} else {
foreach($folder, $dstFolders, <crlf>, "e") {
if (exists($folder) == 2) { copyto $folder, 4:=2, 11:=0; }
}
}
One of my scripts helped you out? Please donate via Paypal
-
- Posts: 4
- Joined: 06 May 2022 19:13
Re: Move selected file(s) to the currently highlighted folder in other pane
Amazing, thank you, I will test it out over the weekend.