|
|
Add an iPhone call log to iCal via AppleScript
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.
Add an iPhone call log to iCal via AppleScript
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.
Add an iPhone call log to iCal via AppleScript
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.
|
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.39 seconds |
|