Re: interesting discovery (trying to get record labels as strings )
Re: interesting discovery (trying to get record labels as strings )
- Subject: Re: interesting discovery (trying to get record labels as strings )
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 04 Dec 2001 11:54:13 -0800
On 12/4/01 11:15 AM, "Olof Hellman" <email@hidden> wrote:
>
> Olof, I'm curious as to why the above is as complex as it is - is there a
>
> reason for this? The following also works, and is somewhat shorter:
>
>
>
> to extract_exact_usrf(theRecord, fieldName)
>
> run script "on run{r}
>
> return |" & fieldName & "| of r
>
> end" with parameters {theRecord}
>
> end extract_exact_usrf
>
>
>
> extract_exact_usrf({|EU|:3, b:2}, "EU")
>
> --> 3
>
>
>
Because I didn't think to try the 'with parameters' option of 'run script'
>
as a way of getting the record inside a dynamically generated script object.
>
This version is indeed much nicer.
>
How does that work? What do 'parameters' of 'run script' do, and what sort
of things are legal, or effective, parameters?
--
Paul Berkowitz