• 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: Adam Bell <email@hidden>
  • Date: Fri, 20 Jan 2006 19:27:25 -0400

Yes, without the parentheses. If I put them in it errors with «script» doesn't understand the q message.

A


On 1/20/06, jj < email@hidden> wrote:
> 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: email@hidden



--
Some minds remain open long enough for a truth to both enter and leave without processing.
 _______________________________________________
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: Adam Bell <email@hidden>)
 >Re: delayDialog (From: jj <email@hidden>)

  • Prev by Date: Re: delayDialog
  • Next by Date: Re: Address Book: why doesn't this work?
  • Previous by thread: Re: delayDialog
  • Next by thread: Re: delayDialog
  • Index(es):
    • Date
    • Thread