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

Re: tell inside a tell


  • Subject: Re: tell inside a tell
  • From: Darwin Zins <email@hidden>
  • Date: Wed, 12 Mar 2003 11:17:29 -0600

Thank you, it's the 'tell me' that I think I am looking for. I didn't realize that the display dialog "listened" to the tell, I just thought it displayed a dialog. I noticed while running the script that sometimes the Address Book would come to the front when a dialog was displayed and I suppose it was because the display dialog was inside a tell address book. I don't want the address book to come to the front, so I will try using tell me.

Thanks again,

Darwin

PS. Not sure about why I use the "is equal to", I am just following code that I find, but I will keep = in mind, I like it a lot better :)

zCard is not an application, nor an application object, so how can it
display dialog? You're not giving us any information, but it must be a
record you've created yourself? It works when inside a tell block to an
application object:

tell application "Address Book"
set aCard to person 1
tell aCard
display dialog "No birthday."
end tell
end tell

-- (No problem)

But

tell application "Address Book"
set zCard to {a:1}
tell zCard
display dialog "No birthday."
end tell
end tell

--> ERROR: {a:1} doesn't understand the display dialog message.


If you really must have it inside a 'tell zCard' tell block, then just add

tell application "Address Book"
set zCard to {a:1}
tell zCard
tell application "Address Book" to display dialog "test"
end tell
end tell
-- works fine

if Address Book is in the front (activated); or

tell me to display dialog "test"

if the script (application) or script editor is in the front, or

tell current application to display dialog "test"

if you really don't know which will be in the front.

BTW, why do people type out " is equal to " every time when " = "works
perfectly well?

--
Paul Berkowitz
_______________________________________________
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.

References: 
 >Re: tell inside a tell (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: scripting mail to select mailboxes
  • Next by Date: Re: birth date from Address Book
  • Previous by thread: Re: tell inside a tell
  • Next by thread: Re: tell inside a tell
  • Index(es):
    • Date
    • Thread