Getting human-understandable time from iCal
Getting human-understandable time from iCal
- Subject: Getting human-understandable time from iCal
- From: Martin Orpen <email@hidden>
- Date: Tue, 28 Sep 2004 13:02:25 +0100
Title: Getting human-understandable time from iCal
I'd like to be able to get the time between events in iCal in a more "readable" format.
I can easily get seconds between events:
tell application "iCal"
set t1 to start date of first event of calendar 9 whose summary is "xx01"
set t2 to start date of first event of calendar 9 whose summary is "xx02"
set t3 to t2 - t1
end tell
Can iCal be scripted to return years/months/days/hours/minutes/seconds?
I’ve no problem divving and modding to get days/hours etc – but I need an accurate month count too and presume that iCal, being a calendar...
--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden