I just moved from a PC to a mac and am just starting to discover (and show my co-workers) what a wonderful life a Mac can be.
I am revising a website and have a LOT of html files that I need to put a single line of html code into. I did this by hand on 15 and decided that maybe I should start to learn a bit of applescript since I have 503 files left to do.
I have a folder that contains several HTML files and 18 subfolders. Each subfolder also contains HTML files. In each one of these files, I have to create a new line add a single line of code on the line before the tag.
I would love to know how to do this using BBEdit and Applescript. Ideally I could give it the root folder for the html files and it would change all files in all folders and subfolders and then give me a list of the files changed.
Is this possible? I figure that this is something I could really show off with to the Windows users in the office since this might be something that might be changed again in the near future. The machine is a a G3 400 running 10.1.5 and bbedit lite 6.1. If needed, I could upgrade the machine to 10.2 or upgrade bbedit also.
Any ideas? Help?
Thanks!
Aaron