Re: Procedure parameters?
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.