RE: Newbie Script Error - Help?
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.