I'm trying to get hazel to help me partition a large collection of date-stamped PDF financial statements by year and by account. They are currently organized by account, which is useful, but each account has accumulated many years worth of statements, so I'd like to restructure so all information for a given year is stored together, still organized by account.
For example, my current structure looks something like this (assuming 3 accounts):
- Code: Select all
Original/
MyBank ABC/
2014-11-01 mybank ABC statement.pdf
2014-12-01 mybank ABC statement.pdf
2015-01-01 mybank ABC statement.pdf
MyBank DEF/
2014-11-01 mybank DEF statement.pdf
2014-12-01 mybank DEF statement.pdf
2015-01-01 mybank DEF statement.pdf
MyUtilities XYZ/
2014-11-01 gas XYZ statement.pdf
2014-12-01 gas XYZ statement.pdf
2015-01-01 gas XYZ statement.pdf
What I'd like it to look like:
- Code: Select all
New/
2014/
MyBank ABC/
2014-11-01 mybank ABC statement.pdf
2014-12-01 mybank ABC statement.pdf
MyBank DEF/
2014-11-01 mybank DEF statement.pdf
2014-12-01 mybank DEF statement.pdf
MyUtilities XYZ/
2014-11-01 gas XYZ statement.pdf
2014-12-01 gas XYZ statement.pdf
2015/
MyBank ABC/
2015-01-01 mybank ABC statement.pdf
MyBank DEF/
2015-01-01 mybank DEF statement.pdf
MyUtilities XYZ/
2015-01-01 gas XYZ statement.pdf
The key thing is that I am not under control of the subfolder names, and new ones get created periodically as new accounts are created. So I'm looking for a solution general enough that if e.g. "MyNewBank LMN" shows up it will be handled as well. Is that doable with Hazel?
Thanks!
Ramon