• 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: delayDialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: delayDialog


  • Subject: Re: delayDialog
  • From: Mark Lively <email@hidden>
  • Date: Fri, 20 Jan 2006 12:51:47 -0500

On 1/20/06, jj <email@hidden> wrote:
> > You can't call another handler as a parameter to a handler, but you
> > can call a handler from within a handler, of course.
>
> You can even pass handlers as objects:
>
> on bar()
>     return "test"
> end bar
>
> on foo(x)
>     x
> end foo
>
> set q to foo(bar)
>
> q() --> "test"
>

That inspired some playing around on my part and I saw that under
tiger at least you can pass extra parameters to functions (they appear
to be dropped on the floor) but it complains if you don't send enough.

It strikes me as more useful the other way.

-Mark
yeah I know.  Just pass 1 parameter to every function which is a list
of values, (probably how its done under the hood)
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: delayDialog (From: Michelle Steiner <email@hidden>)
 >Re: delayDialog (From: jj <email@hidden>)

  • Prev by Date: Re: delayDialog
  • Next by Date: Anyone scripting Toast 7?
  • Previous by thread: Re: delayDialog
  • Next by thread: Re: delayDialog
  • Index(es):
    • Date
    • Thread