Create an applescript to apply tidy to a directory

Joined
Jul 19, 2008
Messages
1
Reaction score
0
Points
1
Hello,

I got my first Mac yesterday!

I'm a web developer and I've placed Tidy (http://tidy.sourceforge.net/) into the application folder.

I've used Tidy via the -i -m parameters to fix up code / auto indent it (Coda doesn't fix indenting).

I'd like to create an apple script that will take all the .php, .html, .css files in a folder and pass them through tidy -i -m $filename.

If anyone could be so kind as to help me with this or suggest a better solution to my problem I would greatly appreciate it!

Best Regards,

Jordan Berry
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top