• 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: referencing a variable from another?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: referencing a variable from another?


  • Subject: Re: referencing a variable from another?
  • From: Emmanuel <email@hidden>
  • Date: Sat, 1 Feb 2003 07:34:35 +0100

At 9:24 PM -0500 31/01/03, James Burns wrote:
Hello:

I'm just starting out relearning AppleScript, Please bear with me.

I'm trying to use one variable, which contains the name of a second variable, to change the value of the "named" variable. Make sense?

Could that sample of mine help you?

on PassVarByNameTest()
set varName to "x"
set x to pi
set y to run script ("get my " & varName)
end doit

PassVarByNameTest()
--> 3.1415926535897932364626

Emmanuel 'hoax'
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: iTunes -- Remove Missing Tracks?
  • Next by Date: Re: Creating PDFs with Ghostscript
  • Previous by thread: Re: referencing a variable from another?
  • Next by thread: Getting a list of applications
  • Index(es):
    • Date
    • Thread