• 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: address book problem...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address book problem...


  • Subject: Re: address book problem...
  • From: Joe <email@hidden>
  • Date: Sat, 17 May 2008 14:03:08 -0700

Vince Angeloni wrote:
>Is this a bug?
>
>This script works:
>
>tell application "Address Book"
>	set mylist to the name of every person whose first name contains "Dave"
>end tell
>set the_choice to choose from list mylist
>
>But putting the "choose from list" call inside the tell block causes Address Book to activate, come to front and the script keeps running without any dialog coming up. The menubar in Address Book is disabled, and you must force quit Address Book;
>
>Bad script:
>
>tell application "Address Book"
>	set mylist to the name of every person whose first name contains "Dave"
>	set the_choice to choose from list mylist
>end tell

I tried your script from Script Editor and added a "tell me to activate" line to bring the dialog to front.

This seems to work here.

tell application "Address Book"
 set mylist to the name of every person whose first name contains "Rob"
end tell
tell me to activate
set the_choice to choose from list mylist

Joe
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >address book problem... (From: Vince Angeloni <email@hidden>)

  • Prev by Date: Re: When is a disk image file encrypted?
  • Next by Date: Re: address book problem...
  • Previous by thread: address book problem...
  • Next by thread: Re: address book problem...
  • Index(es):
    • Date
    • Thread