Re: Month arithmetic addendum
Re: Month arithmetic addendum
- Subject: Re: Month arithmetic addendum
- From: Martin Orpen <email@hidden>
- Date: Tue, 28 Sep 2004 23:14:51 +0100
on 28/9/04 10:13 pm, Michelle Steiner at email@hidden wrote:
> set the_months to {January, February, March, April, May, June, July, ¬
> August, September, October, November, December}
> display dialog "Enter the number of months to add." default answer ""
> set n to (the text returned of the result) as integer
> if (October as number) + n is greater than 12 then set n to n + 1
> -- add error checking to ensure only integers are entered
> item (((October as number) + n) mod 13) of the_months
[snip]
Damn, I just pasted a rubbish script to the server but it was over the 12K
limit so I'll have to wait for the *official word* from the moderator :-(
You don't get a lot of *styled text* in 12K do you?
--
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