Move, copy and archive the copied files

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

Moderator: Mr_Noodle

Move, copy and archive the copied files Wed Sep 07, 2016 7:55 am • by carycrusiau
Hi there,

I bought Hazel yesterday and, so, I'm pretty new to it. Here's what I try to do without success: I want to drop Adobe Illustrator (.ai) files in a folder, move these files in an sub-folder with the name 'AIs', copy the same files in another folder with the name 'ZIPs' and, then, archive each files in the 'ZIPs' folder individually.

Image

How to do that?

TIA
Last edited by carycrusiau on Thu Sep 08, 2016 6:07 am, edited 2 times in total.
carycrusiau
 
Posts: 5
Joined: Wed Sep 07, 2016 6:59 am

Re: Move, copy and archive the copied files Wed Sep 07, 2016 12:10 pm • by Mr_Noodle
I think it should be straightforward. Use a sequence of Sort into subfolder, Copy, Archive. I suggest giving it a try and post back here if you run into specific problems.
Mr_Noodle
Site Admin
 
Posts: 11879
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Thanks! It works. In fact, I thought the 'Archive' action at the end would archive all the files and not only the copied ones :roll:
carycrusiau
 
Posts: 5
Joined: Wed Sep 07, 2016 6:59 am

Another question.

Here is my current rule:

Image

All the actions work fine except the second ('Open'). For now, I have 10 files but only a few (4 or 5) of them are correctly opened by the ‘Default Application’. What's wrong?

TIA
carycrusiau
 
Posts: 5
Joined: Wed Sep 07, 2016 6:59 am

Re: Move, copy and archive the copied files Thu Sep 08, 2016 10:34 am • by Mr_Noodle
It might be that the application is too slow opening the files. You can try adding a delay by using a shellscript:
Code: Select all
    sleep 5


Where "5" is the number of seconds to pause.
Mr_Noodle
Site Admin
 
Posts: 11879
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Move, copy and archive the copied files Thu Sep 08, 2016 10:53 am • by carycrusiau
Thanks! Will give this a try…
carycrusiau
 
Posts: 5
Joined: Wed Sep 07, 2016 6:59 am


Return to Support

cron