• 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: Passing *possible* variables to a handler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing *possible* variables to a handler


  • Subject: Re: Passing *possible* variables to a handler
  • From: Paul Berkowitz <email@hidden>
  • Date: Thu, 18 Jul 2002 14:02:48 -0700

On 7/18/02 12:16 PM, "Arthur J. Knapp" <email@hidden> wrote:

>> I guess you could hide sub-handlers within a main handler by wrapping them
>> in a script object, but I'm not sure what practical advantages this'd have
>> (anyone think of any?).
>
> First of all, there is the Serge effect, where a script object might be
> needed by a handler for only the life of the handler for speeding up access
> to list items. Rather than referencing the object directly, one can use
> "Nigel" access, giving the script object methods that provide faster access:
>
> on TheHandler( theList )
>
> script o
> property p : theList
>
> on GetAt(x)
> return my p's item x
> end
>
> end
>
> tell o
> GetAt(4) --> faster access to item 4
>

Arthur,

Are you saying that this "Nigel" method provides even faster access than the
straight "Serge" method? by much? Or is it just an alternate way to get this
same fast access?

--
Paul Berkowitz
_______________________________________________
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: Passing *possible* variables to a handler
      • From: "Arthur J. Knapp" <email@hidden>
References: 
 >Re: Passing *possible* variables to a handler (From: "Arthur J. Knapp" <email@hidden>)

  • Prev by Date: Fwd: Newby QuickTime Broadcaster Question
  • Next by Date: Re: Determining frontmost application in OS X
  • Previous by thread: Re: Passing *possible* variables to a handler
  • Next by thread: Re: Passing *possible* variables to a handler
  • Index(es):
    • Date
    • Thread