• 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
being stupid: how to refer to a property from a variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

being stupid: how to refer to a property from a variable


  • Subject: being stupid: how to refer to a property from a variable
  • From: transmitRobot <email@hidden>
  • Date: Tue, 26 Jun 2001 15:30:21 -0400

I'm working in AppleScript and run into a syntax snag.
Can somebody give me a "clue" as to the solution.

I've got a several properties containing lists.
The user selects an item from one propertylist.
Based on the result, they then select from another list.

I can't figure out how to refer to a propertyList from a variable for the
choose from list function.

---------------begin scriptsample text

property storeList : {"S1", "S2", "S3", "S4", "S6", "S7", "S8", "S9",
"T1"}
property S1publicationList : {"FMNP", "CCbrz", "BOext"}
property S2publicationList : {"NDN", "Marco"}
property S3publicationList : {}
property S4publicationList : {"ORsen", "FLmag", "WtrMk"}
property S6publicationList : {"SarHd", "SarSM", "LongB"}
property S7publicationList : {"StPbT"}
property S8publicationList : {"AZrep", "NSind", "PVind"}
property S9publicationList : {}
property T1publicationList : {"DMN"}
property promptText : "SomePromptingText"



set storeNumber to ,
choose from list storeList with prompt promptText OK button name "OK"
cancel button name ""

set publist to ((characters 1 thru 2 of (storeList as string)) &
"publicationList")


set publicationName to ,
choose from list (publist as item) with prompt promptText OK button
name "OK" cancel button name ""

----------I error out here.
----------end scriptsample text.


  • Follow-Ups:
    • Re: being stupid: how to refer to a property from a variable
      • From: g3pb <email@hidden>
  • Prev by Date: Archive of Lists in one file, or a file per year?
  • Next by Date: [ANN]Matematica and other Modules
  • Previous by thread: Archive of Lists in one file, or a file per year?
  • Next by thread: Re: being stupid: how to refer to a property from a variable
  • Index(es):
    • Date
    • Thread