Re: Too simple to find an answer for...
Re: Too simple to find an answer for...
- Subject: Re: Too simple to find an answer for...
- From: David Andrews <email@hidden>
- Date: Thu, 29 Jul 2004 22:25:48 -0400
A little less clumsy:
set MyNumberList to {5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2}
set Result01 to 0
repeat with i in MyNumberList
set Result01 to Result01 + i
end repeat
On Jul 29, 2004, at 4:42 PM, Bernardo Hoehl wrote:
I expected a "sum" or summarize to be a reserved word.
This is what I was using:
set Result01 to 0
repeat with i from 1 to the count of MyNumberList
set Result01 to Result01 + (item i of MyNumberList)
end repeat
I thought I was being just too clumsy doing this...
Thanks!
[snip]
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.