Can Hazel Do This?

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

Moderator: Mr_Noodle

Can Hazel Do This? Wed Dec 07, 2016 2:17 pm • by amberweinberg
I'm looking for something easy to automate setting up some local folders because I start dev. I'm not sure if Hazel or Automator can do this, or a combo of both, so I was hoping someone could point me in the right direction. Here's what I'm wanting to happen:

Anytime a folder named “wordpress” is added to desktop:

1) Delete all folders from “theme” folder
2) Copy over “starter theme” (located elsewhere on computer) to “theme” folder
3) Delete “Hello Dolly” plugin from “plugins” folder
4) Copy over “ACF” plugin (located elsewhere on computer) to “plugins” folder

Any help would be very appreciated.
amberweinberg
 
Posts: 2
Joined: Wed Dec 07, 2016 2:14 pm

Re: Can Hazel Do This? Thu Dec 08, 2016 12:18 pm • by Mr_Noodle
That would probably require a script since it seems like you are pulling files from somewhere else. If you know any shell scripting, the script to copy stuff over should be fairly straightforward. Otherwise, you can look into Automator to do that part.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Can Hazel Do This? Thu Dec 08, 2016 3:10 pm • by amberweinberg
It would just be pulling files from another folder on the same HD. I've thought about Automator, but not sure how to set it up or what the difference is between Hazel and Automator?
amberweinberg
 
Posts: 2
Joined: Wed Dec 07, 2016 2:14 pm

Re: Can Hazel Do This? Mon Dec 12, 2016 12:30 pm • by Mr_Noodle
Hazel is much more than being able to run a sequence of actions. The rule engine is a big part of it and something that Automator doesn't really have to the same degree. Hazel can run Automator actions so it's not an either/or issue in this case.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support