Re: tell app <script> to handler(a,b) doesn't work (ahem)
Re: tell app <script> to handler(a,b) doesn't work (ahem)
- Subject: Re: tell app <script> to handler(a,b) doesn't work (ahem)
- From: christian vick <email@hidden>
- Date: Wed, 23 Oct 2002 11:56:52 +0200
>
From a script i try to call another script's handler with parameters:
>
>
tell app MyScriptApp to doSomething(a,b)
>
>
This errors with: "MyScriptApp got an error: some object doesn't match the
>
parameters {} for ." The parameters do match, of course.
>
>
>
If i call a handler with a single parameter it errors in:
>
"MyScriptApp got an error: The variable some object is not defined."
>
>
>
If i call a handler without parameters it works:
>
tell app MyScriptApp to doSomething()
>
>
>
>
Has anyone better results?
Yes, I have. Christian, you shouldn't post to the list if you have not
tested your stuff well.
The problem was indeed a parameter mismatch, but inside the MyScriptApp. I
called my log library wrong (the first statement in the
doSomething-handler), so i thought "if no error is logged the error must be
before, in the call to the MyScriptApp itself"...
Greetings
Christian Vick
_______________________________________________
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.