Hi,
I'm trying to let Hazel help me to copy tagged folders to a NAS and afterwards move the source folder.
I did this with the following rule:
If "tags contain move_to_nas"
Copy to "folder on NAS"
remove tags "move_to_nas"
move to folder "copied_to_nas on local HD"
This way I can be sure that the folders in the local subfolder "copied_to_nas" are also present on the NAS.
This way, if I need space and want to remove one of the subfolders, I can do this without losing data, since the data has been copied to the NAS before.
The problem:
When the NAS is not there or is prematurely disconnected, my script continues, removing the tag and moving the folder locally.
So, I end up with a moved folder even though the folder has not been copied to the NAS.
Is there any way to only carry out folder/file actions when a previous action was successful?
If there isn't, I could put the functionality in a script and put this logic in the script, right?
Thanks in advance for your help!
Martin