In a previous post I gave an overview of how this blogging software works. Once I made the PHP program that generate the script I needed a way to publish the site to

I created a bash script that looks like this:


cd /Users/addy/Sites/Projects/

php _generate.php

cd ../

rsync -e "/usr/bin/ssh" --compress --quiet --bwlimit=2000 -av blog

echo -e "\nRsync transfer finished."

I then created an AppleScript wrapper and compiled that to .app ("Save as .app" in AppleScript Editor). Now I have one-click publishing.

If you're making a similar script you should use SSH Keys so you don't have to keep typing in your password.