pointing to the currently open page in Address Book

I would like to be able to select a person directly in Address Book, and then run an applescript on that person. In Filemaker, I can “tell current record”. I tried that in Address Book, as well as “tell current person” and could not pass the compile step.

What is the proper syntax to address the open, current page in Address Book, if any?



Model: iMac
AppleScript: 2.4.3
Browser: Safari 537.78.2
Operating System: Mac OS X (10.7)


Address Book / Contacts has a selection property

tell application "Address Book" -- ("Contacts")
	set selectedContacts to selection
	repeat with aContact in selectedContacts
		-- do something
	end repeat
end tell

thanks, Stefan…that helped a lot. So selection is the current contact page. I understand.