If Renamed column

Main discussion forum
Post Reply
hopalongrock
Sr. Member
Sr. Member
Posts: 290
Joined: Wed Sep 15, 2010 1:38 pm

If Renamed column

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

User avatar
jtclipper
Administrator
Administrator
Posts: 770
Joined: Tue Aug 10, 2010 12:04 pm

Re: If Renamed column

Post by jtclipper »

The change script can be extended to include the rename column in the checks made and mark the column as skip

hopalongrock
Sr. Member
Sr. Member
Posts: 290
Joined: Wed Sep 15, 2010 1:38 pm

Re: If Renamed column

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

hopalongrock
Sr. Member
Sr. Member
Posts: 290
Joined: Wed Sep 15, 2010 1:38 pm

Re: If Renamed column

Post by hopalongrock »

if (tg_getField('filename')=tg_getField('path')+tg_getField('rename')) then
tg_setresult('Same')
else
tg_setresult('New');

works well.

Post Reply