Page 1 of 1

Drag file rename

Posted: 31 Mar 2013 19:02
by Zekses
Is it possible make an option to drag one file onto another and by this replace its name but not extension? Will be very useful for subtitles.

Re: Drag file rename

Posted: 31 Mar 2013 20:15
by LittleBiG
Zekses wrote:Is it possible make an option to drag one file onto another and by this replace its name but not extension? Will be very useful for subtitles.
Solving this was my very first script and the mostly used since then. Frankly, that was the moment when I fell in love with XY. I was so glad I could invent an easy way to this repetative task, matching the movie and the subtitle name. (It would have been impossible in my previous file manager.)

Code: Select all

"Name matching|c:\windows\system32\shell32.dll / 250"
  if (<curitem> != "" AND <curitemprev> != "")
  { call renameitem("<get curitemprev base>", , 1)
  } else {
    status "Missing selection", , "alert"
  }
First I click on the movie file, then I go to the subtitle, and click on my "Name matching" button. This gives the movie name to the subtitle, without changing the extension.

Re: Drag file rename

Posted: 31 Mar 2013 20:24
by Zekses
Thx, works like a charm