Nice solution @jon. I was wondering how that might be achieved with a script. I thought I could use something similar to Open new tabs in destination when source is locked but different events.
I also had a crack the problem. My solution was to copy the files then close the current tab, this takes you back to the previous tab, which should be the desired one. I don't know if this was already suggested?
What will the button do:
- Select all image files if you hold down ctrl
- Move all selected files to [files parent]\outtakes (creates outtakes folder if needed)
- Close the current tab if you are in a marked pictures folder
<?xml version="1.0"?>
<button backcol="none" display="both" textcol="none">
<label>Archive and close</label>
<tip>Archive files and close tab </tip>
<icon1>#newcommand</icon1>
<function type="normal">
<instruction>@keydown:ctrl</instruction>
<instruction>Select grp:Images </instruction>
<instruction>@keydown:common </instruction>
<instruction>Copy MOVE TO "{filepath|..}\outtakes\" CREATEFOLDER="{filepath|..}\outtakes"</instruction>
<instruction>@ifpath:coll://Marked Pictures\*</instruction>
<instruction>GO TABCLOSE</instruction>
</function>
</button>