Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Add an iPhone call log to iCal via AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Add an iPhone call log to iCal via AppleScript
Authored by: Canerow on Aug 26, '08 09:11:07AM

Actually, yes it does. Terminal just gives me an output that makes me think it doesn't. I'm quite new to this command line stuff.
I would recommend this quite highly.
One problem though. When I change the seconds to minutes in the calllog2ical.rb file the output numbers stay the same, so instead of 1140 seconds call duration iCal just claims it's 1140 minutes instead.

Can anybody help me tweak or point me in the right direction?



[ Reply to This | # ]
Add an iPhone call log to iCal via AppleScript
Authored by: jecwobble on Aug 26, '08 10:41:03AM

I think you need to change the part that reads "call.duration.to_s" also. I don't know Ruby so I don't know if ".to_s" means "to string" or "to seconds", but you should be able to get decimal minutes by dividing "call.duration.to_s" by 60.



[ Reply to This | # ]
Add an iPhone call log to iCal via AppleScript
Authored by: jedmtnman on Aug 26, '08 10:51:15AM
I am not a Ruby expert, but I belive it should be newEvent.setNotes("Length of call: " (call.duration/60).to_s + " minutes.") I have not tested it, I just added it to the hint for reference so it is easier to find. .to_s in Ruby is a toString method.

[ Reply to This | # ]