Page 1 of 1

Baffled...I thought I understood Match Date

PostPosted: Sat Jun 25, 2016 4:27 pm
by dontfencemein
I have some utility statements I'd like to rename and file. I couldn't get date match to work. I set up a folder with some files named the same way to show you.

The files I want to rename look like this:
Image

I previewed the file with the May 2015 date. This result makes sense to me:
Image

Previewing the same file, this result does not make sense to me:
Image


Here's how I set up the Match Date token:
Image

So there's something I'm not getting about how to set this up. I used forced four digits for the year and two for the month and date. I put a hyphen between the date elements. Thoughts on what I've done wrong?

Re: Baffled...I thought I understood Match Date

PostPosted: Mon Jun 27, 2016 11:35 am
by Mr_Noodle
When using "Name matches", the pattern has to account for all of the characters in the name, not just the date part. Since you are checking "starts with" with some specific text, just use that text at the beginning of the pattern (and remove that second condition).

Re: Baffled...I thought I understood Match Date

PostPosted: Mon Jun 27, 2016 2:15 pm
by dontfencemein
Got it. So it sounds like if I had a batch of three or more files like this:

made up account name 2016.06.21.pdf
a different named account 2016.06.21.pdf
yet another account with a longer name 2016.06.21.pdf

...in order to change only the date format in those file names, I would need to set up the matching condition like this:
[anything][my date token][extension]

I can't use the [word] condition because the number of words varies in each file. Do I have that right?

Re: Baffled...I thought I understood Match Date

PostPosted: Mon Jun 27, 2016 3:59 pm
by Mr_Noodle
Yup. You got it, except that "Name" does not include the extension ("Full Name" does).

Re: Baffled...I thought I understood Match Date

PostPosted: Mon Jun 27, 2016 10:53 pm
by dontfencemein
OK, I think I've got it for now. Thanks for the help!