Re: Getting human-understandable time from iCal
Re: Getting human-understandable time from iCal
- Subject: Re: Getting human-understandable time from iCal
- From: Michelle Steiner <email@hidden>
- Date: Tue, 28 Sep 2004 11:03:24 -0700
On Sep 28, 2004, at 5:02 AM, Martin Orpen wrote:
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...
This might help:
(July) - (March)
--> 3
You have to use the parentheses because Applescript removes the minus
sign otherwise.
Unfortunately, it seems that you can't do the reverse.
((July) + 3) as month
--> Can't make 10 into a month.
But there is a workaround for that:
set the_months to {January, February, March, April, May, June, July,
August, September, October, November, December}
item ((July) + 3) of the_months
--> October
--
Don't anthropomorphize computers. They hate that.
_______________________________________________
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