Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

macpitzer

macrumors newbie
Original poster
Jul 25, 2010
1
0
I have several thousand recipes that are named; "recipe-001.html", "recipe-002.html", "recipe-003.html", etc. I would like to create an Applescript that opens each file, copies the name between my tags <h1>Chicken and Rice</h1> in that file, close the file and rename that file to the h1 name with proper naming structure of lowercase and underscores, i.e., "chicken_and_rice.html" -- and then repeat the same process for each additional recipe file.

Any suggestions would greatly be appreciated.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.