Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Contacts, show count of items in group?

If I create a custom group, there seems to be no way of knowing how many people/items there is in it.

Well I could always start counting...but...

Is there an option to show the count?



User uploaded file

Mac Pro (Early 2008), OS X Mountain Lion (10.8.2)

Posted on Apr 27, 2013 1:12 PM

Reply
14 replies

Apr 27, 2013 7:44 PM in response to MacSweden

Hi,


You can run something like this in the Applescript Editor:


tell application "Contacts"

set group_list to every group

set group_data to {}

repeat with this_group in group_list

set group_name to name of this_group

set group_count to count (every person of this_group)

set end of group_data to (group_name & " - " & group_count)

end repeat

end tell

return group_data-- look below in result window


You can add more and place the list somewhere.


kel

Contacts, show count of items in group?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.