• 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: Bob Studer <email@hidden>
  • Date: Sat, 19 Mar 2005 09:50:29 -0800

On Mar 19, 2005, at 5:26 AM, cedrik wrote:

Seems i have a problem with variable names.
I have to create new variables with names from the VALUES of other variables.
E.g. I have:
set myVar to “width”
set myValue to 80

Now i wanna have the variable “width” with a value of “80”.

Im kinda stcuk with this simple probelem ;) Applescript ist sometimes weird for a php programmer......

"width" is kind of generic. I bet that there is a property that already has the name "width" in the code's current context. I usually name my variables more individually to avoid these problems. Such as "theWidth" or something like that.

-Bob

PGP: 0x5A969850
---------------------
"After a week with a Windows machine I get the feeling that this system is designed by people who know a lot about computers. Macs, on the other hand, seem to be designed by people who know a lot about people."
- Nigel Kendall, The Times (UK)
 _______________________________________________
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

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

  • Prev by Date: Re: Setting all subfolder views to list
  • Next by Date: FW: Creating variables with names from other variable values ?
  • Previous by thread: Re: Creating variables with names from other variable values ?
  • Next by thread: Re: Creating variables with names from other variable values ?
  • Index(es):
    • Date
    • Thread