Can Hazel Easily Copy To a Networked Folder?

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Can Hazel Easily Copy To a Networked Folder? Wed May 18, 2022 2:47 pm • by MacWorks
I have a DVD ripping project and want Hazel to copy (not sync) any item that lands in that folder to a network drive. Is this possible and if so, can I add to the rule to delete the watched folder contents once the file copies to the network drive?

What would that rule look like?

TIA
MacWorks
 
Posts: 6
Joined: Thu Sep 18, 2014 1:52 pm

Why not use the Move action instead?
Mr_Noodle
Site Admin
 
Posts: 11193
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Why not. OK, thanks. Question only half answered.

Does Hazel successfully Perform a move to a network folder?
MacWorks
 
Posts: 6
Joined: Thu Sep 18, 2014 1:52 pm

It should. If you find it doesn't, then please post back with details.
Mr_Noodle
Site Admin
 
Posts: 11193
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

MacWorks wrote:Why not. OK, thanks. Question only half answered.

Does Hazel successfully Perform a move to a network folder?



Yes, I do it all the time for Plex Server management. You can also run/call scripts from Hazel (if you need to mount the drive, etc. )
tiny-e
 
Posts: 22
Joined: Fri Mar 12, 2010 5:51 pm

Re: Can Hazel Easily Copy To a Networked Folder? Thu Jul 07, 2022 12:19 am • by h.it
At least when copying from a Networked Folder, it is not so easy.

My issue was that Spotlight metadata were missing for the files and Hazel reponded with a crash.
*** Terminating app due to uncaught exception 'HazelMetadataException', reason: 'Could not retrieve metadata for file: /Volumes/Photo/Photo/Input/PicFlats/Next/255677_10150198896486727_686311726_7469655_3872495_n.jpg'
terminating with uncaught exception of type NSException

my workaround was
1) Make sure that the volume gets logged in automatically (e.g. https://appletoolbox.com/how-to-manage-login-items-on-your-mac/)
This means that it will get indexed by Spotlight automatically.
2) Check if spotlight is running on the volume.
I used this command.
sudo mdutil -s /Volumes/Photo (based on https://www.gtrigonakis.com/blog/2016/4/26/how-to-enable-spotlight-indexing-on-a-network-volume
Response: /System/Volumes/Data/Volumes/Photo:
Server search enabled

Whenever the volume is not indexed, then Hazel crashes. Hence we need step1 as work-around
h.it
 
Posts: 3
Joined: Mon Jul 04, 2022 11:30 pm

Re: Can Hazel Easily Copy To a Networked Folder? Sun Jul 10, 2022 2:56 am • by h.it
Despite having enabled SpotLight on the Networked Folder on the NAS according to the steps above.
https://prnt.sc/cmep9JmzJPCq
Shows that Spotlight is indexing on the Networked folder

Hazel is still showing the Spotlight issues, when the Hazel working folder is on the NAS.
https://prnt.sc/DeRNJZF9IuK3

The more files I move into the Hazel working folder, the more "Could not Retrieve Meta Data" errors I get.

Looking at the notifications generated by Hazel, still it appears to work.
The options I have are
1) Use a local working folder in the internal Mac disk instead of the Networked Folder - still moving files to the NAS as destination.
2) Continue using the working folder on the NAS.

What do you suggest?
Moreover when I click on the rule status (Check the status of the current rules) and then on the rule information for one file,
that usually leads to this
https://prnt.sc/VQICUYN-Aqtf

I obtained another uncaught exception:
Process: Hazel [5241]
Path: /Applications/Hazel.app/Contents/MacOS/Hazel
Identifier: com.noodlesoft.Hazel
Version: 5.1.2 (2274)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Hazel [5241]
User ID: 503

Date/Time: 2022-07-10 08:39:27.811 +0200
OS Version: Mac OS X 10.15.7 (19H1922)
Report Version: 12
Anonymous UUID: DE707EAF-7903-A06C-9733-4F92E57497C7


Time Awake Since Boot: 9500 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSException count]: unrecognized selector sent to instance 0x600002dd3180'
terminating with uncaught exception of type NSException
abort() called

It appears to be an uncaught exception, that happens when the file has been already been moved to its destination.

I decided to move the Hazel working folder to a local Mac folder, because obviously Hazel has too many issues here.
I will still keep the NAS as destination.
h.it
 
Posts: 3
Joined: Mon Jul 04, 2022 11:30 pm

What kind of NAS are you using? Some don't do Spotlight well, if at all.

Also, can you email in the full crash?
Mr_Noodle
Site Admin
 
Posts: 11193
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support