• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Incrementing variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Incrementing variables
      • From: Michelle Steiner <email@hidden>
    • Re: Incrementing variables
      • From: Christopher Nebel <email@hidden>
    • Re: Incrementing variables
      • From: Jean-Baptiste LE STANG <email@hidden>
References: 
 >Incrementing variables (From: Robert Poland <email@hidden>)
 >Re: Incrementing variables (From: Michael Ghilissen <email@hidden>)

  • Prev by Date: Re: Incrementing variables
  • Next by Date: Re: Defing a Path correctly
  • Previous by thread: Re: Incrementing variables
  • Next by thread: Re: Incrementing variables
  • Index(es):
    • Date
    • Thread