• 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: Jean-Baptiste LE STANG <email@hidden>
  • Date: Fri, 18 Apr 2003 19:26:35 +0200

As far as I know, you use 'my' when you are in a [tell ... end tell] block, and I'd like also to have an explanation of this.

JB

Le vendredi, 18 avr 2003, ` 19:03 Europe/Paris, Wallace, William a icrit :

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.
_______________________________________________
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: Dropin'
  • Next by Date: Re: BUG: AppleScript compilation problems
  • Previous by thread: RE: Newbie Script Error - Help?
  • Next by thread: Re: Newbie Script Error - Help?
  • Index(es):
    • Date
    • Thread