Re: Convert Text to Variable Name
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