Re: address book problem...
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