Hi,
I don’t know you, but here i miss some persons from my contacts list in application “Adressbook”
i’ve 152 contacts, but my scripts counts only 143!
try yourself:
tell application "Address Book"
set d to groups
set ff to 0
repeat with i in d
set ps to people of i
set lg to count items of ps
set ff to ff + lg
end repeat
return ff
end tell
question 2:
any chance to create smart groups with some hack ? its bitter, without.
question 1 is easy to explain: a contact can be assigned to more than one group and can also be assigned to none group. So the amount of all members of all groups is not equal to the amount of “All Contacts”.
question 2 : I doubt this is possible in AppleScript, because a Spotlight search pattern must be assigned to the group and there is no appropriate AppleScript terminology
for q1:
i used to assign to to every person a department value for accessing them easily through smart folder groups. No smart group deals with more than one variable, department in my case. Therefore, seems strange to get other computations.
Elsewhere, you are right.
for q2:
also here, you’re right. I meant with hack some trick, using maybe some modifications at xml-files. This kind of scripting lurks on me, i’m sure. After some time with shells now. Only the starting point is always so hard without good references.