Page 1 of 1

Can Hazel Do This?

PostPosted: 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.

Re: Can Hazel Do This?

PostPosted: 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.

Re: Can Hazel Do This?

PostPosted: 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?

Re: Can Hazel Do This?

PostPosted: 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.