Page 1 of 1

If Renamed column

Posted: Wed Nov 14, 2012 11:34 am
by hopalongrock
I propose that the "If Renamed" column should be "<no change>" or something like this, if it is identical to the original file name. So we can avoid having to constantly look at what has changed. Maybe an option or a button could be to enable/disable this.

Re: If Renamed column

Posted: Wed Nov 14, 2012 3:25 pm
by jtclipper
The change script can be extended to include the rename column in the checks made and mark the column as skip

Re: If Renamed column

Posted: Wed Nov 14, 2012 4:24 pm
by hopalongrock
With
if (tg_getField('filename')=tg_getField('rename')) then
tg_setresult('Same')
else
tg_setresult('New');
I got "New", I don't know why, as I see the "File" and "If Renamed" fields are the same.
What is wrong?
Otherwise Skip is true.

Re: If Renamed column

Posted: Wed Nov 14, 2012 5:25 pm
by hopalongrock
if (tg_getField('filename')=tg_getField('path')+tg_getField('rename')) then
tg_setresult('Same')
else
tg_setresult('New');

works well.