RENAME internal command appears not working from within clickData.func.command object

Bingo. Sorted... thanks.
Very strange I am playing with the script @Leo wrote in this post:
Rename Dialog sequential Numbering downwards
You had some input @Ixp I think.
In that script there is no cmd.AddFile(item) and it works fine.
Hmmm.....
Working anyway thanks alot...