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

Re: Address Book


  • Subject: Re: Address Book
  • From: Daniel Jalkut <email@hidden>
  • Date: Mon, 30 Jan 2006 10:58:33 -0500

Hi Rob - I don't know if there is a 100% reliable way. The closest thing might be the "selection" property of the application, which returns the selected entries. There may be more than one, however, and I'm not sure there's a guaranteed way of deciding which is being displayed.

This seems to work "pretty well" though:

tell application "Address Book"
	set visiblePerson to item 1 of (selection as list)
end tell

It seems that AddressBook always shows the "top-most" selected person, and also always returns that person first in the selection list.

Daniel

On Jan 30, 2006, at 12:36 AM, Rob Lewis wrote:

In Address Book, how does one reference the currently displayed person's record?_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
40red-sweater.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Address Book (From: Rob Lewis <email@hidden>)

  • Prev by Date: RE: Applescript-users Digest, Vol 3, Issue 54
  • Next by Date: ANNOUNCE: FaceSpan 4.3
  • Previous by thread: Address Book
  • Next by thread: RE: Applescript-users Digest, Vol 3, Issue 54
  • Index(es):
    • Date
    • Thread