• 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: Christopher Stone <email@hidden>
  • Date: Fri, 14 Jan 2011 18:37:43 -0600

On Jan 14, 2011, at 17:56, Stan Cleveland wrote:
or (2) returns a line of compiled AppleScript code as a script object:
set varName to "blah"
set s to run script ("script s" & return & "set " & varName & " to \"Hello\"" & ¬
return & "end script" & return & "return s")
--> set blah to "Hello"
______________________________________________________________________

Hey Stan,

Thanks for the examples.

Well I thought I was reasonably clear in my first post but perhaps not.  What I wanted was for you to return the value of varName starting with the text value "varName".

set theVariable to path to home folder
set anotherVariable to "theVariable"

Now I want to return the value of theVariable starting with anotherVariable if it's possible.

The outcome on my machine should be: alias "Odin:Users:stone:"

--
Chris
 _______________________________________________
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

  • Follow-Ups:
    • Re: Convert Text to Variable Name
      • From: Axel Luttgens <email@hidden>
    • Re: Convert Text to Variable Name
      • From: Matthew Smith <email@hidden>
References: 
 >Convert Text to Variable Name (From: Christopher Stone <email@hidden>)
 >Re: Convert Text to Variable Name (From: André Renault <email@hidden>)
 >Re: Convert Text to Variable Name (From: Christopher Stone <email@hidden>)
 >Re: Convert Text to Variable Name (From: Stan Cleveland <email@hidden>)

  • Prev by Date: Re: Convert Text to Variable Name
  • 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