• 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: interesting discovery (trying to get record labels as strings )
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: interesting discovery (trying to get record labels as strings )


  • Subject: RE: interesting discovery (trying to get record labels as strings )
  • From: Olof Hellman <email@hidden>
  • Date: Tue, 4 Dec 2001 11:15:02 -0800

> 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.

- Olof


  • Prev by Date: Re: Scripting Entourage
  • Next by Date: Re: Scripting Entourage
  • Previous by thread: Re: interesting discovery (trying to get record labels as strings )
  • Next by thread: Re: interesting discovery (trying to get record labels as strings )
  • Index(es):
    • Date
    • Thread