- Dominik’s Journey ;-) - http://www.reinmund.net/journey -
Enhancing Apple’s iWeb without using .Mac
Posted By Dominik On 29th May 2006 @ 21:24 In Computer | 1 Comment
I started fooling around with [1] Apple iWeb, which is a nice WYSIWYG web page creator tool. Unfortunately, some features are NOT available unless you get Apple’s paid service .Mac. But there is help. Slideshow
Apple’s own AJAX / Javascript slideshow is replaced by a boring HTML-only slideshow when exporting to folder and uploading to your own webpage via FTP or WebDAV. Much ebetter: replace Apples HTML slideshow with a javascript slideshow from [2] www.couloir.org. [3] MacOSXHints.com has links on how to implement it.
Automatic export to FTP / WebDAV
I tried WebDAV, which is supported by Apple since the 1.1 release. But it seems to be unstable. I had to manually delete the whole content of my WebDAV folder before I could upload changes. Did not like it. The other option is export to folder, and then upload manually via a FTP program to your website of choice. Too much manual work, did not like it either.
My solution: using [4] rsync command in the terminal to upload only the changed files (determined by checksum), and leave the new javascript slideshow data untouched. This is what needs to be done
rsync -rca --delete -c --progress --stats --exclude "Name_of_Site/SlideShow_assets/" ~/Sites/iWeb/Data/ user@yourdomain.com:/iweb
("Name_of_Site" is the name that you give your site in iWeb. It’s the name next to the big red dot. You also need the FTP login information for your website.) Now, to make things even easier, I defined a terminal-shell alias in the terminal so I only have to type "iweb", and the terminal does the rest.
Type "pico .tcshrc"
Type "alias iweb ‘rsync -rca –delete -c –progress –stats –exclude "Name_of_Site/SlideShow_assets/" ~/Sites/iWeb/Data/ user@yourdomain.com:/iweb’" (all in one line)
Type "control-x" (to exit pico text editor) Type "y" (to save changes)
If you are NOT using the TSCH shell, you’d need to enter the alias in your shell’s alias file. So, in the future, all you have to do is
iweb (enter) and then enter your FTP passwordArticle printed from Dominik’s Journey ;-): http://www.reinmund.net/journey
URL to article: http://www.reinmund.net/journey/2006/05/29/enhancing-apples-iweb-without-using-mac/
URLs in this post:
[1] Apple iWeb: http://www.apple.com/ilife/iweb/
[2] www.couloir.org: http://www.couloir.org/js_slideshow/
[3] MacOSXHints.com: http://www.macosxhints.com/article.php?story=20060116074934287
[4] rsync: http://en.wikipedia.org/wiki/Rsync
Click here to print.