a very smart idea !!. Life is unfair: why are some people so smart !
would you be so kind as to give me some indication as to how would I write a macro to a dummy file, for example ‘Hazel cleanup trigger’ (txt?) in my downloads folder?
obviously I only want to trigger the macro once, and would have to delete the file afterwards. What would you suggest. I am not sure if I would have to take into account the Hazel folder monitoring cycle frequency.
You may not have to pause for this long to wait until Hazel is done, but I figured it was better to start with a generous time allotment and decrease it as testing proves viable.
I am lost as to how to configure Hazel if it is not too much to ask.
The objective is that if the Hazel cleanup trigger.txt is present in the Downloads folder, then everything (files and subfolders) in the Downloads folder is moved (with replace if necessary) to the Downloads DUMP TEMP folder.
Although I have and use Hazel a bit I'm not that familiar with it, so I'm at just as much of a loss as you on whether there's a way to have a trigger file move all of the files and sub-folders in its folder to another folder. Fortunately, I do know how to accomplish that with KM, and it's not too difficult. The only aspect I found to be less than intuitive was replacing without asking, which the Move or Rename File action doesn't have an option for by default, but once you realize that replacing an old file with a new one is essentially just deleting an existing file with that same name before moving the new one, the logic of how to handle that in KM becomes clear:
Have you tried using UI Scripting with AppleScript to use the Hazel menu?
I don't have Hazel, so I don' t know if this is doable, or feasible. It is just an idea.
For anyone interested or curious about Hazel, I found this YouTube to be very good: Getting started with Hazel
Thank you for your reply.
You are right: it is possible to implement scripts with Hazel.
The problem is that I don’t know how to write scripts.
Thanks for the VERY INTERESTING video.
a very interesting suggestion. thank you very much.
It allows me to solve the problem of cycling through all files one by one.
If you had a minute, I would greatly appreciate your opinion regarding printing: system vs using an app.
I am concerned that Hazel will use the system printing and force me to use color, which would be out of the question.
thank you.
I assume that you mean: open file ➜ print➜ close➜ tag file as printed ➜ next file until all files are tagged.
How do you manage the until all files are tagged part?
a Hazel rule (on the Downloads folder), which moves any file if and when it acquires a 'move' tag,
it will be enough to use a KM action which adds a tag.
Here is an add tag action, nested in a For Each, so that it tags all the files in in Downloads folder as due for a move, but you could be as targeted or as broad-brush as you want.
Of course, you don't really need Hazel for this – KM could move the files for you, as well – but here is a Hazel rule which moves the file (and also clears the triggering tag).
A very good idea Martin. I tried it but got stuck writing the Hazel rule.
The KBM macro works fine, and I want to create a KBM Hazel palette each one creating a file which triggers a specific rule in a specific folder.
My problem is writing the Hazel rule. Hazel finds the created file (so the conditions clause is fine), but only 'acts on' (here sends to trash) that specific file. Would you have any idea how to configure the Do the following clause so that ALL files are sent to trash if the trigger file is found?
thanks very much for your time and help
The following Hazel rule only sends the trigger file to the trash, instead of sending all files in the downloads folder to the trash
yes.
Please note that the developer warned me that Hazel processes only the file or folder it matches in the first place, so that may be a problem.
thanks very much for considering my problem