Page 1 of 1

Camera memory card problem

PostPosted: Thu Nov 05, 2020 4:28 am
by tcgass
Hi everone,

I have 3 identical action cams recording on SD cards. Pictures and Movies are stored in identically named folders (unfortunately I cannot change these names...). The cards are named "Cam 1", "Cam 2" and "Cam 3". I'ld like Hazel to add the card's name in front of each file name and move the files to my harddrive. I've set up the according rules for "Cam 1" - no problem. However, it looks as if Hazel references to the card reader and not the card's name itself: when inserting "Cam 2" card and trying to add it in the folder list, Hazel changes the already setup folder "Cam 1" to "Cam 2". Is there any possibility to avoid this? I've seen two similar posts in the forum addressing similar problems, but couldn't find a solution so far...

Thanks for any hints, Thomas

Re: Camera memory card problem

PostPosted: Thu Nov 05, 2020 10:35 am
by Mr_Noodle
Can you describe what folder you are monitoring and what your rules are at the moment?

Re: Camera memory card problem

PostPosted: Thu Nov 05, 2020 10:51 am
by tcgass
I'm monitoring the mounted card with three rules:
    1: If all of the following conditions are met
    Kind is Folder
    Run rules on folder contents

    2: If Kind is Movie
    Rename with pattern "Cam 1 'name''extension'"
    Move to folder: (folder path)

    3: If Kind is Picture
    Rename with pattern "Cam 1 'name''extension'"
    Move to folder: (folder path)

Re: Camera memory card problem

PostPosted: Thu Nov 05, 2020 11:25 am
by Mr_Noodle
I assume you are monitoring the "Cam 1" folder then? Also, are you saying that Hazel is modifying the destination folder? I'm not following how that would be possible in this case.

Re: Camera memory card problem

PostPosted: Thu Nov 05, 2020 11:32 am
by tcgass
Sorry, I guess I didn't express myself clearly enough (I'm not of English mother tongue :wink:

I am monitoring the whole Drive "Cam 1", i.e. the card as it is displayed/mounted on the desktop. I drag it to the left hazel bar and create the rules which work perfectly. I then dismount "Card 1" and mount the second card ("Cam 2") and want to add it to the left hazel bar, then then grayed out folder "Cam 1" is simply replaced by "Cam 2".

Re: Camera memory card problem

PostPosted: Thu Nov 05, 2020 2:37 pm
by Mr_Noodle
I'm wondering if internally they are being mounted at the same place (so it looks the same to Hazel). Are you ok with using the commandline? If so, insert Cam 1 and do the following:

ls -l /Volumes

Save the output. Now eject and insert Cam 2 and do the same command again.

Post/email the output from both.

Re: Camera memory card problem

PostPosted: Thu Nov 05, 2020 4:14 pm
by tcgass
ok, here we go:

Cam 1:

Studio-Mac-Pro:~ admin$ ls -l /Volumes
total 144
drwxrwxrwx@ 1 admin staff 65536 Jan 1 1980 CAM 1
drwxrwxrwx@ 14 root wheel 544 Jul 16 12:08 Daily Backup
drwxrwxrwx@ 1 admin staff 330 Nov 5 08:28 DiskCatalog_Databases
drwxrwxrwx@ 387 admin 501 13226 Nov 5 17:00 Intern 1
drwxrwxrwx@ 36 admin 501 1292 Nov 5 17:10 Intern 2
drwxrwxr-x@ 39 admin 501 1394 Nov 5 17:20 Intern 3
drwxrwxrwx@ 1 admin staff 10904 Nov 5 08:28 Produktionsarchiv_A
drwxrwxrwx@ 1 admin staff 11584 Nov 5 08:28 Produktionsarchiv_B
drwxrwxrwx@ 40 root wheel 1428 Oct 23 10:18 SSD Sample Library
drwxrwxrwx@ 1 admin staff 500 Nov 5 08:28 Sammelsurium
drwxr-xr-x@ 63 root wheel 2210 May 15 09:55 Studio El Capitan
lrwxr-xr-x 1 root wheel 1 Nov 5 08:18 Studio High Sierra -> /

Cam 2:

drwxrwxrwx@ 1 admin staff 65536 Jan 1 1980 CAM 2
drwxrwxrwx@ 14 root wheel 544 Jul 16 12:08 Daily Backup
drwxrwxrwx@ 1 admin staff 330 Nov 5 08:28 DiskCatalog_Databases
drwxrwxrwx@ 387 admin 501 13226 Nov 5 17:00 Intern 1
drwxrwxrwx@ 36 admin 501 1292 Nov 5 17:10 Intern 2
drwxrwxr-x@ 39 admin 501 1394 Nov 5 17:20 Intern 3
drwxrwxrwx@ 1 admin staff 10904 Nov 5 08:28 Produktionsarchiv_A
drwxrwxrwx@ 1 admin staff 11584 Nov 5 08:28 Produktionsarchiv_B
drwxrwxrwx@ 40 root wheel 1428 Oct 23 10:18 SSD Sample Library
drwxrwxrwx@ 1 admin staff 500 Nov 5 08:28 Sammelsurium
drwxr-xr-x@ 63 root wheel 2210 May 15 09:55 Studio El Capitan
lrwxr-xr-x 1 root wheel 1 Nov 5 08:18 Studio High Sierra -> /

Re: Camera memory card problem

PostPosted: Thu Nov 05, 2020 4:43 pm
by Mr_Noodle
Strange. Not quite sure how that's happening though you may be able to use it to your advantage.

In your rules, you can set up a condition like:
Code: Select all
If (all) are met
    Kind is Movie
    If (all) are met for (the enclosing folder)
        Name matches (• parent name)

where (• parent name) is a custom attribute you define with a pattern of "anything". That will capture the name of the parent folder into that attribute. You can then use that in the Rename pattern. That way, the rules will work with whatever folder regardless of its name.

That said, I'm a bit curious about why this is happening. If you have the time and don't mind doing some extra diagnostics, email in to support. Mention this thread.

Re: Camera memory card problem

PostPosted: Thu Nov 05, 2020 4:58 pm
by tcgass
ok, thanks for your support! Although I don't know exactly how to set up the condition, I'll try to find out ;-) And sure, I do find the time to investigate the issue together with you - I'll send you a support mail, so that we can start.

Thanks again and have a great evening

Re: Camera memory card problem

PostPosted: Fri Nov 06, 2020 10:48 am
by Mr_Noodle
Look up "nested conditions" and "match patterns" in the manual for more help.

Re: Camera memory card problem

PostPosted: Fri Nov 06, 2020 11:08 am
by tcgass
got it, thanks, works fine!