How can I paste with overwrite?

Discuss and share scripts and script files...
Post Reply
xyka
Posts: 22
Joined: 21 Oct 2010 22:17

How can I paste with overwrite?

Post 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.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: How can I paste with overwrite?

Post 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.

Post Reply