Re: Incrementing variables
Re: Incrementing variables
- Subject: Re: Incrementing variables
- From: Robert Poland <email@hidden>
- Date: Tue, 19 Jul 2005 16:34:04 -0600
Do you mean a list?
no, see below
As in:
set theContainer to {element1, element2}
set item 1 of theContainer to "Hello"
Or do you mean it in a mathematical way were Y is a function of Y?
Michael Ghilissen
On Jul 19, 2005, at 6:01 PM, Robert Poland wrote:
Hi,
Is there a way to create variables in Applescript like, X(Y)? Where
x is the variable and Y could be another variable.
Tia,
-- Bob Poland - Fort Collins, CO
http://www.ibrb.org/
set selectedPlots to {1,2,3,4}
repeat with index from 1 to selectedPlots
set xplot to item index of selectedPlots as integer
if xplot = 1 then -- lying
set plotValue(xplot) to theValue(xplot)
set plotValue(xplot) to theValue(xplot)
...
end if
if xplot = 2 then -- Sitting
set plotValue(xplot) to theValue(xplot)
set plotValue(xplot) to theValue(xplot)
...
end if
if xplot = 3 then --Standing
set plotValue(xplot) to theValue(xplot)
set plotValue(xplot) to theValue(xplot)
...
end if
end repeat
--
Bob Poland - Fort Collins, CO
http://www.ibrb.org/
_______________________________________________
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