Quick Question re: custom dates

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

Moderator: Mr_Noodle

Quick Question re: custom dates Sun Oct 16, 2016 8:24 am • by dorian_grey
Hello,

I want to process a file called [sometext]_2016_09_[sometext].pdf: Get |year| and |month| in separate tokens from the filename, then move the file to a certain folder, put it in a subfolder |year| and rename the file to |year|_|month|-[sometext]|extension|.

For getting |year| and |month| I created two tokens via Hazel's custom date token: My new token called "year" only contained the token |year| from the custom date section, same with my token "month" (with the respective |month| token).

Now I got an error regarding some array being 2 instead of being between 0 and 1.

I solved the problem by using the |custom text| token from Hazel, but I'd like to know why it didn't work the other way nevertheless.

Thanks
dorian_grey
 
Posts: 20
Joined: Sun Sep 04, 2011 8:01 am

Re: Quick Question re: custom dates Mon Oct 17, 2016 10:58 am • by Mr_Noodle
Can you email in to support with the full text of the error?
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support