• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Searching for the equivalent of coercing to type "record"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Searching for the equivalent of coercing to type "record"


  • Subject: Re: Searching for the equivalent of coercing to type "record"
  • From: julifos <email@hidden>
  • Date: Sat, 08 Mar 2003 10:03:49 +0100

> On 3/7/03 7:41 PM, "Jeffrey Mattox" <email@hidden> wrote:
>
>>> ----------------------------
>>> run script ("{<<class usrf>>:{\"a\", \"b\"}} as record")
>>> --> {a:"b"}
>>> ----------------------------
>>
>> Great, informative thread. But still unanswered is where does one go
>> to get details on all these nifty chevronisms (OS X), including how
>> to use them?
>
> Here.
>
> --
> Paul Berkowitz

And some old-old docs... Do you remember the Apple Doc Viewer? ;-)

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 & "\"}"
-->

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"

JJ
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
_______________________________________________
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.

  • Follow-Ups:
    • Re: Searching for the equivalent of coercing to type "record"
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: Simple request
  • Next by Date: Re: "info for" weirdness
  • Previous by thread: Re: Searching for the equivalent of coercing to type "record"
  • Next by thread: Re: Searching for the equivalent of coercing to type "record"
  • Index(es):
    • Date
    • Thread