#!/bin/bash #calsync - a script to allow the use of ical on two computers #Copyright (C) 2005 Daniel Brewer #This program is free software; you can redistribute it and/or #modify it under the terms of the GNU General Public License #as published by the Free Software Foundation; either version 2 #of the License, or (at your option) any later version. #This program is distributed in the hope that it will be useful, #but WITHOUT ANY WARRANTY; without even the implied warranty of #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #GNU General Public License for more details. #http://www.gnu.org/copyleft/gpl.html USER=user #Username to access WebDAV PASSWORD=password #Password to access WebDAV URL=http://www.example.com/ical/ #URL position of ical files for i in Home Work Birthdays #Name of calendars do wget --http-user=$USER --http-passwd=$PASSWORD $URL$i.ics -O ~/Library/Calendars/$i.ics done #To automatically open the iCal application. #open -a iCal.app exit