Re: It can be done, but does it make any sense?
Re: It can be done, but does it make any sense?
- Subject: Re: It can be done, but does it make any sense?
- From: Mr Tea <email@hidden>
- Date: Sat, 02 Oct 2004 10:16:05 +0100
This from Michelle Steiner - dated 2/10/04 7ยท42 am:
> set the_Months to {January, February, March, April, May, June, July,
> August, September, October, November, December}
> item ((December as number) - March as number) of the_Months
Neat. It works even without the 'as number' coercions. I guess the construct
((a)-b) only makes sense with numerical values, and as months have a
numerical value in the AS universe the sum works. It doesn't work, of
course, if the same is tried with weekday names, which have no numerical
equivalent in AppleScript. Even spookier, to my mind, is the result of 'item
((February) - March) of the_Months', even though it's consistent with normal
AppleScript behaviour.
Nick
pp Mr Tea
--
_______________________________________________
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