My biggest gripe with the iPhone thus far has really been a gripe with iCal. Namely, that there’s not an easy way to add alarms to subscribed calendars. I know that sounds like a silly gripe, but let me set the stage.

My main calendaring info is in Google Calendar, like a lot of folks. This is great because I can access my calendar from anywhere, on any computer, most cell phones, etc. It gives me a central way to maintain a calendar and have access to it pretty much all the time. I subscribe to my Google Calendar in iCal on my Mac, which gives me native calendaring (one-way, at least) that’s always up-to-date with the data in the Google cloud. It’s nice.

Taking it one step further, I use SyncMyCal to push my Outlook calendar to my Google Calendar as well. (I would use the normal Google Calendar Sync application, but it only syncs with the primary calendar, and I’d rather keep my personal calendar and work calendar separate.) So, every day, before I leave the office, I click a little sync button and it pushes my Outlook info up to Google Calendar. Again, one-way sync, but it’s one-way from my primary source, so I’m not worried about it.

That means I’ve got my personal and work calendars all centrally located on Google Calendar, accessible from pretty much anywhere. Including my primary machine of my Mac, where iCal subscribes to all of my various calendars. It’s a wonderful system.

Except one thing. iCal doesn’t allow you to set alarms on subscribed calendars. At least not through the interface. That makes this wonderful sync system decidedly less useful. See, between my MacBook and my iPhone, I’m pretty much covered. One is with me most of the time. If I had alarms on my calendars, then I’d pretty much have a perfect setup.

It worked incredibly well with my Motorola Q (and The Missing Sync from Mark/Space), which would import all of the calendar items from iCal, and set default alarms on them on the Q. Beautiful.

Not so much on the iPhone. For a couple of months, I’ve just dealt with the fact that using Google Calendar put me in the middle of the two supported options: using iCal and using Exchange (which became available with the 2.0 firmware). I could see the calendar events on my iPhone, but they were never going to make that nice “bleep bleep” sound and let me know that I had a meeting or I had to be somewhere in a few minutes. It’s something I had taken for granted with previous smartphones, but just chalked up to a deficiency in the early years of the iPhone.

Except I finally got fed up enough to do some digging into AppleScript and found some pointers to adding an alarm to an event. I figured why not give it a shot on subscribed calendars? Maybe I could add some alarms to my subscribed calendars?

After poking around and playing with AppleScript (something brand new to me, I got this working):

tell application "iCal"
	set theCalendars to {"Subscribed 1", "Subscribed 2"}
	repeat with theCurrentValue in theCalendars
		tell calendar theCurrentValue
			set theEvents to every event
			repeat with theCurrentEvent in theEvents
				tell theCurrentEvent
					make new sound alarm at end with properties {trigger interval:-15}
				end tell
			end repeat
		end tell
	end repeat
end tell

Basically, we grab our two subscribed calendars (those are placeholder names, replace with your own subscribed calendar names), go through each entry and add a sound alarm 15 minutes before the event. It takes maybe 10 or 15 seconds to go through both of my calendars, but lo! I end up with alarms both in iCal and on the iPhone!

Bingo. Exactly what I need. I’m sure there’s something more elegant, but this worked for me.

The next issue, of course, was a “race condition” of sorts. My calendars update themselves periodically. If they updated before I sync with my iPhone, the alarms would be gone. How could I resolve that?

How about another AppleScript? I did a bit more googling, and of course, there’s a nice way to sync your iPhone (or iPod), via AppleScript. Why not combine both scripts and drop it into the iTunes script directory? That’s a brilliant idea!

tell application "iCal"
	set theCalendars to {"Sub1", "Sub2"}
	repeat with theCurrentValue in theCalendars
		tell calendar theCurrentValue
			set theEvents to every event
			repeat with theCurrentEvent in theEvents
				tell theCurrentEvent
					make new sound alarm at end with properties {trigger interval:-15}
				end tell
			end repeat
		end tell
	end repeat
end tell

tell application "iTunes"
	repeat with s in sources
		if (kind of s is iPod) then update s
	end repeat
end tell

Now, when I’m about to leave the house, I just do this:

iTunes Sync

That’s it. All of my calendar items, from Google Calendar, sync’d to my iPhone with alarms. It’s a beautiful thing.

And I wish nothing more than for iCal to render it useless my having a “add default alarm to subscribed calendar” checkbox.

 

Hey, I made a small revision to my Greasemonkey script that makes it smarter about handling time (particularly AM/PM).

It’s updated here and updated on Userscripts, where I’m up to like 566 installs! I’m a hit! Or something. And I’m like the 4th link in Google if you search for “google calendar evite!”

If you’ve got Greasemonkey, install your Evite to Google Calendar script right from here.

 

For a while now, I’ve been looking for a good way to sync the calendar on my Macbook to Google Calendar to my Outlook at work. It’d be nice to be able to know what my next day at work looks like in Outlook, then to have my Calendar sync’d down to my laptop so that I can see and adjust things while offline, then sync it all back to the master calendar in Google Calendar.

 

It shouldn’t be that tough, but so far, it has proven elusive. I’ve tried some of the free tools that are around to sync iCal with Google Calendar and Outlook with Google Calendar, but they’ve all proved a bit wonky.

 

Finally, Scoble mentioned that Plaxo had it’s new beta that would do all of the syncing through a nifty web application. So, I headed over to Plaxo.com and tried it out. It seems pretty straight-forward. You add “sync points”, which are places that Plaxo will sync your data to. I added Google Calendar, my Mac, and my work Outlook. The latter two required the installation of some software. Nothing too difficult. A couple of config tweaks later and I saw my work calendar in my Google Calendar and sync’d down to my Mac.

Perfect!

 

Except, over the following few days, I would constantly get duplicate calendars, lose the original calendar, get duplicate entries, continually have to tell Outlook which calendars I really wanted, which it would ignore and keep syncing other ones.

 

It became a royal mess.

 

So, I decided to uninstall things, get back to square one, and at least retain my Google Calendar the way it was. Except Plaxo ate my two calendars (because they no longer existed in Outlook … lesson: kill your sync points before killing your calendars). That kinda pissed me off. Thankfully, my Mac still had my calendar, so I was able to dump the ICS entries and upload them to Google (import of ICS files is a nice feature of Google Calendar, by the way!). I lost my music calendar, but it was mostly older stuff at this point, so I started that one over.

 

Plaxo just didn’t work for me, though it seems like it could be useful if they work the kinks out. It didn’t sync to Google Calendar fast enough, which was always a bit annoying. The apps for the Mac and PC were kind of clunky, but they worked ok. But borking the calendar syncing was just a bit too much to deal with at this point.

 

So, I’m back to just subscribing to my Google Calendar feeds through iCal. I’m going to try gSync for about the 4th time and hope that the final release version is finally good enough to maybe think about using full time.

 

It’d be cool if Google solved this problem themselves (maybe opening up the GCal API), but I’m not holding my breath.

 

I’d noticed a couple of problems with my Evite to Google Calendar script, so when I got an Evite today, I took some time to figure out how to fix it. I fixed everything I could find, and made the script a bit more robust at handling future Evite changes. So, if you’ve been having problems, give it another shot and hopefully it’ll work for you now.

Install Evite to Google Calendar Greasemonkey Script v1.3

You can also install it from UserScripts, like 387 other people.

 

I got my first Evite in a while, and I noticed that my little Greasemonkey script wasn’t working for it. That lead me to go back and check out the entry at Userscripts and find out that people were getting bit by the fact I had to hard code the timezone info, which isn’t very friendly.

So, I opened it up again and hacked around and fixed both bugs. Took me about 30 minutes, and got my mind off of recent events.

Evite2GoogleCal at Userscripts

Now with:

  • the ability to use it for invites that happened on the 1-9th of the month (yeah, that was a dumb bug)!
  • automagically detecting your timezone and setting the entry to the right time!

Be the 191st person to install it!

© 2011 That Not So Fresh Feeling Suffusion theme by Sayontan Sinha