Re: address book problem...
Re: address book problem...
- Subject: Re: address book problem...
- From: Christopher Nebel <email@hidden>
- Date: Mon, 19 May 2008 12:02:09 -0700
On May 17, 2008, at 1:02 PM, 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
It certainly not expected behavior, though it's also something I can't
replicate. You say that
1. Address Book comes forward
2. No dialog appears (and you say you're not running Spaces, but check
that it's not hidden behind some other window)
3. The script keeps running.
#3 is the really curious bit to me -- how do you know the script is
continuing? If it is, then that means "choose from list" is failing
in the middle of putting up the dialog, and failing in a really weird
way, if Address Book winds up blocked. I'd guess that either your
Standard Additions is damaged, or you've got some unusual patch like
an APE haxie. Check the console log when you launch either Script
Editor or Address Book, and when you run the offending script; there
may be a clue there.
--Chris Nebel
AppleScript Engineering
_______________________________________________
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