Re: Dynamic Records?? (or other alternatives)
Re: Dynamic Records?? (or other alternatives)
- Subject: Re: Dynamic Records?? (or other alternatives)
- From: "Jason W. Bruce" <email@hidden>
- Date: Thu, 29 Nov 2001 09:44:49 +0000
>
2) Can you create a record during the running of a script, such as
>
>
set wrdz to {"applescript":2 , "script":1}
>
>
adding a new entry for each new word the script encounters. Or are records
>
not the way to do this? Or do I need to go about the entire process a
>
different way. From what I can tell, you have to define everything in the
>
record before it is run. Am i wrong?
You can create a record on the fly and then combine it with an existing
record as follows:
set foo to {myrecord:3, myscript:4}
set wrdz to "{applescript:2,Script:1}"
set bar to run script wrdz
set foobar to foo & bar
--> {myrecord:3, myscript:4, AppleScript:2, script:1}
Jason Bruce