Re: Creating variables with names from other variable values ?
Re: Creating variables with names from other variable values ?
- Subject: Re: Creating variables with names from other variable values ?
- From: Doug McNutt <email@hidden>
- Date: Sat, 19 Mar 2005 06:44:53 -0700
At 14:26 +0100 3/19/05, cedrik wrote:
>set myVar to "width"
>set myValue to 80
>Now i wanna have the variable "width" with a value of "80".
set width to 80
is the obvious answer but I think that's not what you mean. Name - value pairs, as in environment variables and HTTP POST and GET protocols are different.
Have a look at the AppleScript record format. It's a bit like a list and a bit like a perl hash. The AppleScript Language Guide is a start.
>Applescript ist sometimes weird for a php programmer......
Ditto for FORTRAN, perl, C, C++, Basic, MPW . . . . .
--
--> From the U S of A, the only socialist country that refuses to admit it. <--
_______________________________________________
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