Re: Searching for the equivalent of coercing to type "record"
Re: Searching for the equivalent of coercing to type "record"
- Subject: Re: Searching for the equivalent of coercing to type "record"
- From: Emmanuel <email@hidden>
- Date: Sat, 8 Mar 2003 11:36:46 +0100
At 10:03 AM +0100 08/03/03, julifos wrote:
Anyway, I've been following this thread and I don't know why are your
forcing the usrf'ing, instead declarate the record as is?
set usrf_key to "user record field!"
set usrf_value to "some words..."
run script "{|" & usrf_key & "|:\"" & usrf_value & "\"}"
--> {|user record field!|:"some words..."}
My apologies for having spawned confusion here.
As a sidenote, as long as I know, if you're running under classic, you don't
need "run script". This works under 9.1, AS 1.8.2b3, running applet:
set x to record {+class usrf;:{"label", "value"}}
display dialog "I'm a " & (x's label) --> "I'm a value"
I didn't know about that one, but I can't have it work here (10.2.1).
Thanks for clarifying the point [1].
Emmanuel
[1] For the record, MF had pointed out privately the absurdity of my
suggestion 6 hours before JJ, but that's unfair since JJ and I were
sleeping then.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.