customKeys and how to address them
Barry Levine
themacguy at macosx.com
Fri Jul 9 19:31:46 EDT 2004
Devin,
Thanks for the assistance. I'm reproducing the few script lines that I found
demonstrate the basic concept (in case there are others here who are as
bamboozled as I was):
get line 2 of the customKeys of fld 1
put "answer the "& it &" of fld 1" into thePhrase
do thePhrase
That gets me the contents of the property. Apparently you have to use some
indirection to get the -contents- of the custom property; why this is the
case is beyond me. I'm a Hypercard kind of guy so I expect it all to be
totally transparent. (*grin*)
Again, thanks very much.
Regards,
Barry
On 7/8/04 6:33 PM, Devin Asay allegedly flung into the void:
> From: Devin Asay <devin_asay at byu.edu>
> Subject: Re: Custom property & selection of text
>
> On Jul 8, 2004, at 3:36 PM, Barry Levine wrote:
>
> <snip>
>
>> ...but the scripting of this escapes me. I've looked at:
>>
>> get the customproperties["customKeys"] of field 1
>> answer it
>>
>> ...but this returns nothing.
>>
> The property you want is the customKeys. You'll have to do it like this
> (untested, but this is the gist):
>
> repeat with i = 1 to number of lines in the customeKeys of fld 1
> get line i of the customKeys of fld 1
> put "select" && it && "of fld 1" into cmd
> do cmd
> wait 2 seconds
> end repeat
>
More information about the use-livecode
mailing list