• 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: tell app <script> to handler(a,b) doesn't work (ahem)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >tell app <script> to handler(a,b) doesn't work (From: christian vick <email@hidden>)

  • Prev by Date: Re: Applescript send problem
  • Next by Date: Re:User Name in OS X
  • Previous by thread: tell app <script> to handler(a,b) doesn't work
  • Next by thread: Skip current repeat iteration
  • Index(es):
    • Date
    • Thread