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