• 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: jj <email@hidden>
  • Date: Sat, 21 Jan 2006 00:01:45 +0100
  • Thread-topic: delayDialog

> jj's example was missing some parentheses:

No, the original one was creating a kind-of constructor, so you were passing
to the related handler -foo- a "real handler", not the "result of executing
a handler"; and, as such, enclosing a new handler in the variable "q":

#################
on bar()
    return "test"
end bar

on foo(x)
    x
end foo

set q to foo(bar)

q() --> "test"
#################

Does this work for you?


jj

--
http://www.macscripter.net/
http://www.osaxen.com/


 _______________________________________________
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

  • Follow-Ups:
    • Re: delayDialog
      • From: Adam Bell <email@hidden>
References: 
 >Re: delayDialog (From: Adam Bell <email@hidden>)

  • Prev by Date: Re: delayDialog
  • Next by Date: Re: delayDialog
  • Previous by thread: Re: delayDialog
  • Next by thread: Re: delayDialog
  • Index(es):
    • Date
    • Thread