Open contact group on Mac

applescriptcontacts

I just want to use AppleScript to open an existing group in Mac Address Book (v7.1).

tell application "Contacts"
    set selected of group "friend" to true
    activate
end tell

above is the sample code for what I want.

Best Answer

This probably isn't the best Applescript code ever written but it did work for me to list the people in a specific group (on 10.8 mountain lion).

tell application "Contacts"
    activate
    set grp to first group where (name = "friend")
    tell grp
        get people
    end tell
end tell