How about:
on a
send ("aardvark" && (word 2 to -1 of the params)) to me
end a
on aardvark
put the params
end aardvark
—
on mouseUp
a "one","two","three"
end mouseUp
—> aardvark "one","two","three"
??
Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http:
Yes, I understand how to do it, I'm just wondering if there's a more
elegant way.
On Thu, Oct 23, 2014 at 8:29 AM, Mark Schonewille <
m.schonewi...@economy-x-talk.com> wrote:
> Hi Mikey,
>
> Here's a way:
>
> on mouseUp
> put fun1("a","b")
> end mouseUp
>
> function fun1
> repeat with x
Hi Mikey,
Here's a way:
on mouseUp
put fun1("a","b")
end mouseUp
function fun1
repeat with x = 1 to the paramcount
put param(x) & comma after myList
end repeat
put "fun2(" & char 1 to -2 of myList & ")" into myFun
return value(myFun)
end fun1
function fun2
Has anybody come up with an easy way to write functions or handlers that are
synonyms for other functions/handlers where both take a variable number of
parameters?
If I want to have a handler "a" and synonym "aardvark", I would normally write
on a name
aardvark name
end a
on aardvark name