Copy files off CD/DVD to folder when inserted

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

Moderator: Mr_Noodle

Copy files off CD/DVD to folder when inserted Sat Jul 18, 2015 4:40 pm • by staze
All,

I'm having a hard time figuring out a rule for this, and googling it doesn't seem to be turning up anything useful.

I have a bunch of files backed up to CD/DVD from back when storage was more expensive. Since then, I have a nice large NAS/DAS system, and I'd like to pull all the files off.

I've got a set of rules created, but they never seem to finish. Something would seem to be looping...

First, I'm looking at /Volumes. First rule checks that the result is a folder (this excludes "Macintosh HD" alias in /Volumes). If true, I have a "Run rules on folder contents".

Second, I have a "Copy off" that basically says "Kind is Movie" or "Kind is folder", and "Date Last Matched" is not in the last 1 hour. Then "Copy to folder X".

Lastly I have a rule that just does "Eject". Checks if Kind is folder (so, again, CD/DVD in /Volumes), then "Run Shell Script", Embedded, "/usr/sbin/diskutil eject $1".

Seems like it's the Copy that's hanging, and I can't figure out why. It's obviously copying data off (the drive indicates activity, and I can see the file being copied "somewhere" in fs_usage, but I have a bad feeling it's just being copied over and over and over again).

Any help?
staze
 
Posts: 16
Joined: Sat Feb 28, 2015 5:52 pm

Check the logs (go to the "Info" section and click "View Log"). You can see what is happening there. Report back with what you find.
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

So, it does work, it's just really slow relative to copying via the finder. =/ The eject doesn't work, however. Not sure why that is. Doesn't show anything in the logs.
staze
 
Posts: 16
Joined: Sat Feb 28, 2015 5:52 pm

Maybe Hazel is still working on it preventing it from being ejected? Can you manually eject?
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Copy files off CD/DVD to folder when inserted Tue Jul 21, 2015 12:46 pm • by staze
Yup. Once the file shows up in the directory, it seems to be "done", and can be ejected.

I'll fiddle some more this evening if I have a chance. =)
staze
 
Posts: 16
Joined: Sat Feb 28, 2015 5:52 pm


Return to Support