Skip to content

Instantly share code, notes, and snippets.

@kristarella
Created March 7, 2013 00:25
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kristarella/5104474 to your computer and use it in GitHub Desktop.
Save kristarella/5104474 to your computer and use it in GitHub Desktop.
A little AppleScript to remove notes from any of your contacts that have them. You could also use contains "string" instead of is not qual to "" to remove specific notes.
tell application "Address Book"
set num to 0
repeat with i from 1 to (count every person)
if (note of person i) is not equal to "" then
set note of person i to ""
set num to num + 1
end if
end repeat
display dialog "Removed " & num & " notes." buttons {"OK"}
save
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment