• 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: Michelle Steiner <email@hidden>
  • Date: Sat, 17 May 2008 14:32:34 -0700

On May 17, 2008, at 1:02 PM, Vince Angeloni wrote:

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

Works for me. iMac Core 2 Duo, 10.5.2. I had to change the name, though; I don't have anyone named "Dave" in my AB.


This also works for me:

tell application "Address Book"
set the_choice to choose from list (get the name of every person whose first name contains "mike")
end tell


I didn't even have to tell anything to activate. Were you running it from Script Editor?

-- Michelle

--
Don't anthropomorphize computers.  They hate that.

_______________________________________________
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: address book problem...
  • Next by Date: Re: address book problem...
  • Previous by thread: Re: address book problem...
  • Next by thread: Re: address book problem...
  • Index(es):
    • Date
    • Thread