Re: Sum of list?
Re: Sum of list?
- Subject: Re: Sum of list?
- From: Emmanuel <email@hidden>
- Date: Tue, 29 Jun 2004 15:44:52 +0200
At 1:20 PM +0100 29/06/04, Martin Orpen wrote:
>
That's given me an idea:
>
>
set theList to {}
>
repeat with n from 1 to 2499
>
set end of theList to n
>
end repeat
>
set theCount to length of theList
>
set text item delimiters to "*"
>
set theSum to do shell script "echo '" & theList & "' | bc"
That's way less fragile than the "run script" that I proposed.
Emmanuel
_______________________________________________
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.