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

Re: Procedure parameters?


  • Subject: Re: Procedure parameters?
  • From: Nathan Day <email@hidden>
  • Date: Mon, 30 Sep 2002 15:07:34 +0930

Pass a script instead like

script passedScript
on sayHello()
display dialog "Hello"
end sayHello
end script

on run
perform(passedScript)
end run

to perform(aScript)
tell aScript to sayHello()
end perform

On Monday, September 30, 2002, at 02:48 PM, Bruce M. Axtens wrote:

In some languages you can have function parameters which are the names of
other functions. I have a generic sort which I like to be able to pass to
the name of a routine that actually does the comparison. Is there a means of
doing this in AppleScript?

Nathan Day
http://homepage.mac.com/nathan_day/
_______________________________________________
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.

References: 
 >Procedure parameters? (From: "Bruce M. Axtens" <email@hidden>)

  • Prev by Date: Procedure parameters?
  • Next by Date: Re: Procedure parameters?
  • Previous by thread: Procedure parameters?
  • Next by thread: Re: Procedure parameters?
  • Index(es):
    • Date
    • Thread