Monday, 22 January 2007

final version of orage synchronisation script ...


and the final version of the orage synchronisation script is :

touch ~/calendar/basic.ics
date >> ~/calendar/google_download.log
while test ! -s ~/calendar/basic.ics
do
wget -rK -nH http://www.google.com/calendar/ical/your_calendar_path/basic.ics -O ~/calendar/basic.ics -a ~/calendar/google_download.log
sleep 30
done
if test -s ~/calendar/basic.ics
then
mv ~/.config/xfce4/orage/orage.ics ~/.config/xfce4/orage/orage_old.ics
mv ~/calendar/basic.ics ~/.config/xfce4/orage/orage.ics
fi

elegant, its is not, but it works.

3 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. this script does make one crucial assumption - that you are using xfce4 as a window manager.

    If you are not you will have to find the location of the ics file and modify the script accordingly.

    As always, your mileage may vary

    ReplyDelete
  3. this script will not work with orage 4.5. In orage 4.5 the default location of the data file is ~/.local/share/orage/orage.ics

    Obviously you could modify the script to use the new file location but this is currently untested. Some assembly/experimentation is required :-)

    ReplyDelete

Note: only a member of this blog may post a comment.