Rename files on search collections

Hello,

I want to reorganize my photo collection. So I created 3 buttons:

Button 1: search photos on current and all sub directories using this function:

Find NAME *.jpg IN {allfilepath$} CLEAR RECURSE QUIET COLLNAME "Suchergebnisse" SHOWRESULTS=source

I've got a collection named col://Suchergebnisse.

Button 2: should reorganize all found photos using this function:

Rename FILEINFO PATTERN "*.jpg" TO "D:\Bilder\{shootingtime|D#yyyy}\{shootingtime|D#MM}\{shootingtime|D#dd}\{name}" AUTORENAME
This button won't work on the collection, but works fine inside a directory with photos. That's my question: why does this function won't work ? I searched all entries in this forum, but I can't find a solution for this.

Button 3: cleanup old empty directories using a small utility I found here:

@runmode hide
"C:\Program Files\GPSoftware\Directory Opus\bin\rmempty.exe" {sourcepath}

Works fine.

Can you help me to modify my Button 2 to work on search collections ?

Thanx,
Greetings,
Farlo

It looks like you cannot use the Rename command to move files around when they come from a collection. (The Copy MOVE command will still work, but lacks the ability to use the shootingtime etc.)

This may give you a workaround. I've not been able to try it with shootingtime etc. but it seems to make a simple rename work, so give it a try:

Rename FROM {filepath$} FILEINFO PATTERN "*.jpg" TO "D:\Bilder\{shootingtime|D#yyyy}\{shootingtime|D#MM}\{shootingtime|D#dd}\{name}" AUTORENAME

The only change is adding FROM {filepath$} near the start so that the Rename command is fed the real path to each file and ignores the file collection.