Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm looking for a better way (my current way: manual labour) to automate my tasks after I'm done with developing my Wordpress themes.

The tasks I need to perform are:

  • Copy
  • Rename
  • Compress (.zip)
  • Delete Files
  • Edit Files (at certain locations, for example - theme version)
  • Move

I know that these tasks can be performed with the terminal (bash, ruby, python, even php, etc. ) or with a GUI tool (I'm on a Mac) like Automator or somewhere in between - Applescript (although I've never touched that thing). There are even some Macro software pieces (again, I know the ones for a Mac) like Keyboard Maestro.

What I'm looking is more for a some sort of framework'y thing, that would help me write a tedious task automator with less bugs.

I was also thinking of keeping a some sort of "myAutomator.config.json" file near the "theme" directory, that would allow configuring specific tasks for each theme, like

version : 1.0.29
deleteFiles : {

Because of this "config" idea, I've shied away from the idea of trying to use Automator, because GUI Variables just seem like a real pain.

I'm most efficient in writing PHP and Coffeescript, but I am very open to Ruby suggestions ( there might be some gems out there ? ) or Python.

TL;DR I want to automate a tasks (see list above) on a Mac OS X 10.7.5 with either a tool or a language ( with a gem/framework? ). Share your task automating experience and what tools would you suggest.

Edit: I Found What I needed: Thor: https://github.com/wycats/thor

share|improve this question

closed as not constructive by Brad Patton, Traveling Tech Guy, Scott, KronoS, 8088 Apr 15 '13 at 19:24

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

These are typical build system tasks. Maybe Rake can do this? I know Gradle (Java) can. –  Daniel Beck Apr 15 '13 at 21:07
That's my guess too and I'll probably build my builder on Ruby. I somehow missed the rule of on being constructive, so the topic is closed anyway. - But Thanks :) –  Norris Apr 15 '13 at 21:13
By the way, I just found exactly what I needed: It's called Thor github.com/wycats/thor –  Norris Apr 15 '13 at 22:57