• 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: Newbie Script Error - Help?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Newbie Script Error - Help?


  • Subject: RE: Newbie Script Error - Help?
  • From: "Wallace, William" <email@hidden>
  • Date: Fri, 18 Apr 2003 12:03:25 -0500

Could someone please clarify or summarize the reasons behind the use of "my"
in the call to a handler (or point me to a very specific and definitive
resource on this subject)? I've also encountered this issue, and I'd just
like to have a more concrete understanding of the when's and why's of using
"my" in calling a handler.

whw

>On 4/18/03 7:05 AM, "Robert Damm" <email@hidden> wrote:
>
>> I am starting to write a synchronisation applescript for address book to
>> entourage. This is the beginning of it...and it fails with
>>
>> "Address book got error: Can't continue find_contact"
>>
>> Help?
>
>You usually get that error when you call a handler from within a tell block
>or from within another handler and forget to include 'my'. You need to
>call:
>
> my find_contact(first_name, last_name)
>
>Similarly within that handler I see you call another one
>
> create_contact(first_name, last_name)
>
>You need to call
>
> my create_contact(first_name, last_name)
>
>or you'll get the same error there.
_______________________________________________
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.

  • Prev by Date: Re: Log progress to AS from "do shell script"
  • Next by Date: Re: Dropin'
  • Previous by thread: Re: Newbie Script Error - Help?
  • Next by thread: Re: Newbie Script Error - Help?
  • Index(es):
    • Date
    • Thread