Skip to content

Instantly share code, notes, and snippets.

@wesmaldonado
Created May 10, 2009 05:44
Show Gist options
  • Save wesmaldonado/109515 to your computer and use it in GitHub Desktop.
Save wesmaldonado/109515 to your computer and use it in GitHub Desktop.
tell application "Address Book"
make new group with properties {name:"No Phone Numbers"}
repeat with i from 1 to number of items in people
set thePerson to item i of people
if properties of phones of (thePerson) is {} then
add thePerson to group "No Phone Numbers"
end if
end repeat
save addressbook
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment