Feb 02, '06 06:05:00AM • Contributed by: mark hunte
This AppleScript allows you to manage as many unrelated sites as you want. It will give you a choice of switching from the current site project to another, or letting you create a new site project. It will also check if you have a real iWeb folder in your user's Library/Application Support folder while doing all of this. If you do, it will give you a choice to either name and move the site project to the iWeb_Projects folder (which must be in your user's Documents folder) or move it to the trash, before it continues. It will also deal with spaces in folder names when running the shell part of the script.
It works by creating a symbolic link for an iWeb Projects sub-folder. This iWeb Projects folder will be held in a folder named for the project, which in turn is stored in your user's Documents/iWeb_Projects folder. Make sure you create the iWeb_Projects folder before you run the script, or you will get errors.
You can then publish your site in the normal way with iWeb. One thing to note: iWeb creates an index file which will always point to the site you just published. So if you published to .Mac, your URL would be:
http://web.mac.com/username/iWeb/
This would then go to the last site published. All you have to the to get to any other sites on .Mac is to add the site name to the end of the URL:
http://web.mac.com/username/iWeb/Mysite
Good luck, and as usual, I have tested as much as I can ... but remember to make a backup first, and test to make sure it all works for you. Use of this script is at your own risk.
[robg adds: I haven't tested this, beyond making sure the code compiled properly in Script Editor. Please heed the backup advice if you're going to try this one!]
