Re: Meeting a matrix of conditions
Re: Meeting a matrix of conditions
- Subject: Re: Meeting a matrix of conditions
- From: Paul Robinson <email@hidden>
- Date: Tue, 14 Sep 2004 14:39:07 +0100
There's this approach:
set _matrix to {¬
"apple", "orange", "banana", "mango", "tomato", ¬
"tomato", "apple", "apple", "tomato", "apple", ¬
"orange", "banana", "banana", "tomato", "mango", ¬
"mango", "tomato", "apple", "orange", "orange", ¬
"apple", "mango", "tomato", "banana", "orange"}
set x to (ASCII number (some item of {"a", "b", "c", "d", "e"})) - 97
--set x relative to zero
set y to (ASCII number (some item of {"v", "w", "x", "y", "z"})) - 117
--set y relative to 1
set z to item ((x * 5) + y) of _matrix --get nth item of the matrix
which is good where you have to sketch out, on a bit of paper, the
matrix. Cos then you just copy it into the script. If you can 'zone'
the matrix (i.e. collect like results together) even better.
P.
On 14 Sep 2004, at 06:40, Joseph Weaks wrote:
I figure there must be a more clever & efficient way to do this:
Thanks,
Joe Weaks
_______________________________________________
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