|
|
Script to copy iCal2 calendars to the old iCal locations
(I submitted this as a hint, but the python script hint was ahead of mine. These do not do exactly the same thing. My script will copy the iCal2 .ics files to ~/Library/Calendars on the same machine, optionally omitting calendars to which you've subscribed. It doesn't upload anything. It will erase anything in ~/Library/Calendars first, so by putting this script in a cron job, you can keep a set of perfect duplicates in the old location. Here's my hint:) I had created some scripts to copy my .ics files from ~/Library/Calendars to a spot where PHP iCalendar could serve them up. With Tiger and iCal2's hierarchical calendars, this broke and was not easily fixed. The calendar files now live in ~/Library/Application Support/iCal/[inscrutable folder name here]/Sources/corestorage.ics. Ugh. Anyway, I made a script to copy figure out the names of the calendars from the associates Info.plist files, and copy them to the old location with the correct names. There is a setting to optionally omit subscribed calendars from being copied. Note that this script will delete anything currently in ~/Library/Calendars (so you can put it in a cron job, and keep the calendars updated). You will also, of course, lose your iCal2 hierarchies. Here's the script. I named it iCalCopier.command, so that I can double-click it if needed. You will also want to chmod +x it to make it executable.
Script to copy iCal2 calendars to the old iCal locations
Also, if you're running phpiCalendar on your own server, you might choose to change the value of the ICAL2DIRECTORY variable to the server directory you want phpiCalendar to find the calendar files in. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|