Page 1 of 1

How can I paste with overwrite?

Posted: 18 Dec 2010 20:39
by xyka

Code: Select all

Sel;
 Sel a;  //SELECT all
 #200;   //CUT all
 Button "back"; 
 Sel;    //DESELECT
 #202;   //PASTE
 Sel;
Script cuts all items from a folder,
goes back (or up) one folder,
and pastes all,
but I have to manually press OK to overwrite files
if files already exist.

I would like that this script could do it automatically.

Re: How can I paste with overwrite?

Posted: 18 Dec 2010 21:35
by serendipity
This will backup your selections to one level up and delete the selections.

Code: Select all

  Sel a;
  Backupto ("../",:list, 2); 
  Delete 0,0,:list;
PS: I cannot think of a way to avoid that overwrite prompt in your script.