Baffled...I thought I understood Match Date

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

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?
dontfencemein
 
Posts: 3
Joined: Sat Jun 25, 2016 3:27 pm

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).
Mr_Noodle
Site Admin
 
Posts: 11951
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

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?
dontfencemein
 
Posts: 3
Joined: Sat Jun 25, 2016 3:27 pm

Yup. You got it, except that "Name" does not include the extension ("Full Name" does).
Mr_Noodle
Site Admin
 
Posts: 11951
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

OK, I think I've got it for now. Thanks for the help!
dontfencemein
 
Posts: 3
Joined: Sat Jun 25, 2016 3:27 pm


Return to Support