Re: being stupid: how to refer to a property from a variable
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 ""