• 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
tell inside a tell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tell inside a tell


  • Subject: tell inside a tell
  • From: Darwin Zins <email@hidden>
  • Date: Wed, 12 Mar 2003 08:41:44 -0600

Is a tell inside a tell a bad thing? Is tell a bad thing is some
cases? I seem to get some strange errors, like I have:

tell application "Address Book"
repeat with aCard in every person
repeat with anItem in XML contents of theXML
if XML tag of anItem is equal to "Contacts" then
set found_in_z to false
repeat with zCard in XML contents of anItem
tell zCard
display dialog "test"

I get an error that displays the data of zCard and says it doesn't
understand the display dialog message. Maybe it is just my
misunderstanding, do I need to tell the address book to display the
dialog or how can I just have my running script always be the thing
that the dialog is displayed by, so that the address book doesn't come
to the top.

Thanks,

Darwin
_______________________________________________
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.

  • Follow-Ups:
    • Re: tell inside a tell
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Determining item number matching "x" in a list
  • Next by Date: Re: birth date from Address Book
  • Previous by thread: Re: Interesting article on using AppleScript for macros in OS X
  • Next by thread: Re: tell inside a tell
  • Index(es):
    • Date
    • Thread