This file management strategy probably reflects my obsessive detail streak, but that's me ... What I want is:
- Document X (mostly PDFs) lands in downloads folder,
- Matches at least one condition (e.g. statement from Bank Y)
- Then the following in whatever order might be best:
- Designated tags applied
- Renamed based on designated name string followed by date created (based on match to document contents)
- Edit metadata for date created (+ modified) to reflect (new) filename
- Moved to ~/Documents/Folder-Z/
- Then - sorted into subfolders (yyyy>MM>dd by created date)
I've largely got what I want. Well let's say 90% ... Chief sticking point seems to be the metadata edit. That will need some background info. Some may be familiar with apps from publicspace.net, in particular A Better Finder Attributes and A Better Finder Rename. Both apps allow the generation of custom droplets.
A droplet from the former is what I've been trying to use in this set of rules. So the idea in theory is that there's an action to "drop on"/"open with" the droplet to change the dates. I have a similar droplet working flawlessly in a Hazel rule for another nest of folders. So it's been puzzling me why not with this one, where "A Better Finder Attributes" has been crashing, hanging, beachballing etc. (And I suspect taking Hazel with it?)
I now have the answer from the PublicSpac dev. The apps (and derived droplets) are heavily and of necessity restricted in what they can do with subfolders. So a clash between ABF... rules and Hazel rules, it seems. Hope you're following me so far, guys. Don't want to bore you. But I am finding this hard to describe succinctly.
So the rules as I have them currently:
First stage: Downloads

2nd stage: "Folder-Z"

I'm not 100% sure how the conflicting rules play out in this, but I suspect it's a matter of the droplet in the second stage being "gazumped" by other actions, particularly "Sort into subfolders ... ". I've disabled the "go into subfolders" rule (having it enabled before caused a nightmare, a story for another time). So I imagine that when File X disappears from the top level of the folder down the rabbit-hole of the subfolder hierarchy, the Droplet loses effective access to it by its own rules.
My best theory so far, therefore, is that I need a way of stopping the "sort into subfolders" action from firing too early, i.e. while the "more cautious" ABF.. parent app is doing it's thing. Does all tht sound a fair hypothesis? If so then I would just observe that I've found some of the more complex Hazel rules hard to "control" as far as speed and workflow order. e.g. I often see notifications about 'earlier' actions after those about 'later' ones. Moving actions seem especially like this. My question then is whether it's functionally possible to modify Hazel rules with 'delay' actions. I've tried various lengths of the "delay xx" command using an embedded AppleScript. No apparent success there. I've dabbled a little in "not in the last X minutes" conditions. Little joy there.
So ... apologies again for a thesis-length post. Hope at least one or two are still awake. Am I going about this the right / best way? Is there a viable alternative?