• 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: Convert Text to Variable Name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convert Text to Variable Name


  • Subject: Re: Convert Text to Variable Name
  • From: "Stockly, Ed" <email@hidden>
  • Date: Fri, 14 Jan 2011 19:16:55 -0600
  • Acceptlanguage: en-US
  • Thread-topic: Convert Text to Variable Name

Title: Re: Convert Text to Variable Name
On 1/14/11 1:04 PM, "Christopher Stone" <email@hidden> wrote:


It seems to me there's a way to convert text to a declared variable name, but I can't remember how.

I don’t believe this is possible. What is possible is to create a script object and define a variable within that script object, based on text, and later access that variable.

What may work for your purposes is to use script objects to create record/labels and then access those records in the original script.

Doing that, you might try:

set
myRecord to "{" & "aLabel" & ": " & "\"bData\"" & "}"

set
myPathRecordScript to run script myRecord

You can access the record going the other direction.

HTH

ES
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Convert Text to Variable Name (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: What is class furl?
  • Next by Date: Re: Convert Text to Variable Name
  • Previous by thread: Re: Convert Text to Variable Name
  • Next by thread: Re: Convert Text to Variable Name
  • Index(es):
    • Date
    • Thread