Copying files

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

Moderator: Mr_Noodle

Copying files Wed Jul 01, 2015 10:33 pm • by wdavies39
I download videos to a file on my desktop from various sources, with each video going into its own subfolder. I then transfer these subfolders to the Media directory on my media server.

I'd like to automate this with Hazel. I attached a Hazel action to the Main Folder, and Hazel springs into action when the first downloaded video begins downloading. However, Hazel doesn't wait for the video to fully download - it starts attempting the move just as the download has started.

Is there any way I can force Hazel to wait until the file is fully downloaded?

Just for info, the file is downloaded as a flv file, and when the download is finished, the downloader converts it to an mp4 or mpv.

Walt
wdavies39
 
Posts: 5
Joined: Wed Jul 01, 2015 10:21 pm

Re: Copying files Thu Jul 02, 2015 2:34 pm • by Mr_Noodle
What program is doing the downloading? And is your rule setup to match the video file or the folder containing it?
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Copying files Thu Jul 02, 2015 4:35 pm • by wdavies39
I download with an app called Get IPlayer Automator. It downloads tv shows.

I have a master Downloads folder. The App then creates a subfolder and then loads a flv file from each show into it. Once it completes each download, it converts into a MP4. It then moves on to the next show, creates a subfolder and then downloads the flu.

So the rule was originally set up to work on the Master Downloads folder - it spotted the subfolder creation and copied its contents - but that means the first few Megs of the show only.

So the second plan was to ignore flv files and copy only the mp4 files. However, that doesn't work as the subfolder names are all unique and I don't know how to tell Hazel to look in the subfolders.

I've tried to do this in Automator but can't get it working. So I thought Hazel might do it, but I probably don't know enough about using it so I'm having problems.

Walter
wdavies39
 
Posts: 5
Joined: Wed Jul 01, 2015 10:21 pm

Re: Copying files Fri Jul 03, 2015 1:17 pm • by Mr_Noodle
Do you want to copy the folders or the files directly? If you want to copy the folders, you can try something like:
Code: Select all
If (all) are met
    If (all) are met for (any of its sub-files)
        Extension is mp4
   ...


To get the nested condition, hold down option while clicking the + button to create a new condition. What that nested condition does is match the folder based on the files within it.

If you want to copy just the mp4 file, first set up a rule to move the file as if it were at the top level. Then check the sticky thread at the top of this forum on how to add a rule to tell Hazel to go into subfolders.

Now, there is still the problem of copying the files too early. You can add a condition like "Date modified is not in the last X minutes" to have the rule not kick in until some time after the file was modified. You'll have to play with the amount of delay to suit your needs.
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Copying files Sat Jul 04, 2015 12:00 pm • by wdavies39
Thanks, so much, Mr. noodle - that worked perfectly!
Great customer service!
wdavies39
 
Posts: 5
Joined: Wed Jul 01, 2015 10:21 pm


Return to Support