A script to convert an iWeb site into a template

Mar 03, '06 06:34:00AM

Contributed by: kesmit

I created this Python script to automatically convert a site in iWeb into a template, and install it in the iWeb application. The following description is taken from the comments at the top of the script:

This script will convert an iWeb site into an iWeb template and install it. The usage is fairly simple. Just create a site in iWeb with the name that you want the template to have. The site should should have each of the standard pages (i.e. About Me, Welcome, Photos, etc.). Once you have a site that looks the way you want, open the Terminal application and run:
  site2template site-name
where site-name is the name of the site you want to convert to a template.
The only thing you have to do manually is create the thumbnails. Read the comments at the top of the script for more information.

[robg adds: I haven't tested this one. You'll want to save the script without the .txt extension, and remember to make it executable with chmod a+x site2template.]

Comments (11)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20060225091102170