• 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: Creating variables with names from other variable values ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Creating variables with names from other variable values ?
      • From: cedrik <email@hidden>
References: 
 >Creating variables with names from other variable values ? (From: cedrik <email@hidden>)

  • Prev by Date: Creating variables with names from other variable values ?
  • Next by Date: Re: Creating variables with names from other variable values ?
  • Previous by thread: Creating variables with names from other variable values ?
  • Next by thread: Re: Creating variables with names from other variable values ?
  • Index(es):
    • Date
    • Thread