Skip to Content

iphonelogd logs your calls in iCal

If you haven't figured it out yet, I'm one of those people who loves it when my computer grabs stats on what I'm up to (though I'm not so much on the whole reporting to other companies thing-- I'd prefer to keep my activities to myself). That's why I love the idea of iphonelogd, a little Ruby script that grabs your call history off of your iPhone, and loads it right into iCal as a calendar with a listing of events.

Pretty sweet. And while it's great that the iPhone's call history already goes way, way back-- no more getting angry that my phone didn't save the number of the girl that called me last Tuesday-- it's even better to have every call logged in iCal with zero effort. You do have to actually run the script, but with a little launchd tweaking, that is easily accomplished as regularly as you restart your Mac. This is exactly what the iPhone promised-- a cell phone that works as well with your Mac as the iPod does.

[ via df ]

If you haven't figured it out yet, I'm one of those people who loves it when my computer grabs stats on what I'm up to (though I'm not so...
 

Add a Comment

*0 / 3000 Character Maximum

23 Comments

Filter by:
Ben Helfinstein

Any chance you could update the script to say "call to ..." or "call from ..." instead of "call with ..." ?

November 11 2007 at 6:11 PM Report abuse rate up rate down Reply
Ben Helfinstein

This is incredibly useful. Thank you so much! Any chance you could put a similar script together to log iChat sessions as iCal events?

November 11 2007 at 6:06 PM Report abuse rate up rate down Reply
Joey J

Right on. Let's take this a step further and put voice recordings of all calls and all voicemails into iTunes, with links from iCal.

November 11 2007 at 1:18 PM Report abuse rate up rate down Reply
Martin

I was wondering about this myself. Does anyone know how the calls list on the sync'd machine is populated? Does it get updated or deleted on each sync? Is there a direct correspondence between the Recent Calls list on the phone and what is saved on the sync'd machine.

November 10 2007 at 4:05 PM Report abuse rate up rate down Reply
Martin

I am attempting to make this work under Tiger. So far I have done the following:
- upgraded ruby to 1.8.5
- installed RubyCocoa0.12.0
- fixed up readline so irb would run

Then I commented all the iCal stuff out of the script so that I could first concentrate on reading and capturing the log. I did this because the Calendar framework (/System/Library/Frameworks/CalendarStore.framework) is not present in Tiger.

I make no promises since I have to work on this in my (almost non-existent) spare time. If anyone else is looking at this and wants to compare notes let me know.

November 10 2007 at 1:15 PM Report abuse rate up rate down Reply
timeshifter

How often do you need to run this? My Recent Calls list only goes back as far as last Wednesday (today is Saturday). I'm guessing that if it doesn't show in Recent Calls on the iPhone it's gone?

November 10 2007 at 12:48 PM Report abuse rate up rate down Reply
Peter

This would be great if it can interface the call logs with Daylite3, which is what I have been waiting for all along so we can log calls to our customers.

Unfortunatley there is (yet) still no legal iPhone in Canada as we have to wait for the behemoth Rogers to get around to getting us real cell phones.

November 10 2007 at 11:16 AM Report abuse rate up rate down Reply
Glenn Rempe

The easiest way to set this up to run is using "Lingon" which is a free tool that lets you manage launchd entries.

I first checked out the log code to a directory with svn, and then I run the ruby script from that location once an hour with launchd. You can download as you normally would any file and place it on your hard disk where you like and follow these directions as well if SVN is beyond you.

My Lingon settings (update to suite your tastes):

1) org.yourlastname.iphonelogd
2) /usr/bin/ruby /Users/glenn/src/git-svn/iphonelogd/iphonelogd.rb 'iPhone Call Log'
3) 'Run it every 1 hours'
4) save it, and logout/login again or restart your mac

Lingon is awesome, is open source, newly updated for leopard, and can be found here:

http://lingon.sourceforge.net/

And yes this needs Leopard since the Ruby language runtime, the frameworks to integrate it with OS X, and ruby gem libraries are only installed in Leopard now that Ruby (and its friend Ruby on Rails) are now first class programming languages in OS X 10.5. The Apple engineers did a lot of work to integrate Ruby tightly with OS X for this release (WooHoo!). Not sure its possible to run this particular code in 10.4 at all. I think you'll start seeing a lot more about Ruby in the OS X context in the days to come.

Enjoy.

November 10 2007 at 2:13 AM Report abuse rate up rate down Reply
Fritz Laurel

BTW, this *might* work on Tiger if you install the Ruby items: Gems, RubyCocoa and SqlLite3. Don't quote me on that as I haven't tried it, but I know Ruby is more strongly represented in Leopard and this script uses those extension. I'm guessing that's why it's Leopard only at the moment.

If anyone gets it to work in Tiger, let the Tiger folks know.

Cheers,
FL

November 10 2007 at 12:53 AM Report abuse rate up rate down Reply
mr. O

NEEDS LEOPARD = Huge caveat

November 09 2007 at 3:22 PM Report abuse rate up rate down Reply
Buy an ad here

Hot Apps on TUAW

Tweets

© 2012 AOL Inc. All Rights Reserved.