Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

hughesdc

macrumors newbie
Original poster
Dec 29, 2007
5
0
I have an AppleScript that helps keep my Contacts up to date in each group. The smart groups on my Mac organized my contacts, but since smart groups are not synced with my iphone and iPad, I created this script to sync the smart groups with the regular groups in my Contacts on my Mac and then they are synced through iCloud to my other devices.

The AppleScript recently stop working and I keep getting this error: Contacts got an error: You can only add a person to a group.

Anyone have any suggestions?

tell application "Contacts"
repeat with the_person in every person in group "SFocus"
add the_person to group "Focus"
end repeat
repeat with the_person in every person in group "SWhole Team"
add the_person to group "Whole Team"
end repeat
save
quit
end tell
 
Solution

I figured out the problem. I had to sets of contact in my Contact app. Those contacts "On My Mac" and those on iCloud. I deleted all contacts on my Mac and the script works great now (again).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.