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

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


  • Subject: Re: being stupid: how to refer to a property from a variable
  • From: g3pb <email@hidden>
  • Date: Wed, 27 Jun 2001 16:55:12 -0800

-- a shortend version that should help

property storeList : {"S1", "S2", "S3", "S4", "S6", "S7", "S8", "S9", "T1"}
property S6publicationList : {"SarHd", "SarSM", "LongB"}
property promptText : "SomePromptingText"

set storeNumber to ,
choose from list storeList with prompt promptText OK button name "OK"
cancel button name ""
set result2 to choose from list (item 1 of storeNumber & "publicationList")
,
with prompt promptText OK button name "OK" cancel button name ""


-- hcir
mailto:email@hidden
Made with a Mac!

-- hcir


> From: transmitRobot <email@hidden>
> Date: Tue, 26 Jun 2001 15:30:21 -0400
> To: <email@hidden>, <email@hidden>,
> <email@hidden>
> Subject: being stupid: how to refer to a property from a variable
>
> 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 ""


References: 
 >being stupid: how to refer to a property from a variable (From: transmitRobot <email@hidden>)

  • Prev by Date: Re: Why did I want the index of a list
  • Next by Date: Re: How do I change my default editor? - *finish*
  • Previous by thread: being stupid: how to refer to a property from a variable
  • Next by thread: [ANN]Matematica and other Modules
  • Index(es):
    • Date
    • Thread