I would like to have a script to delete all my groups in my Contacts.
Somehow I got a kind of replication bug resulting in over 500 groups.
Delete them one by one is not an option.
Tried this script, but it does not do the job, I have to enter to many group names and after a while the sript stops even when not all groups have been deleted.
tell application "Contacts" repeat 50 times set theGroup to group "MyGroupName" delete theGroup end repeat save end tell
Any help will be much appreciated.