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