Skip to content

Instantly share code, notes, and snippets.

@datenimperator
Created March 12, 2010 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save datenimperator/330204 to your computer and use it in GitHub Desktop.
Save datenimperator/330204 to your computer and use it in GitHub Desktop.
tell application "Address Book"
set mylist to selection
repeat with this_person in mylist
set new_note to ""
set tmp to (get note of this_person)
set the_paragraphs to the paragraphs of tmp
repeat with the_paragraph in the_paragraphs
if the_paragraph does not contain "CLASS:" and the_paragraph does not contain "xing" then
set new_note to new_note & the_paragraph
end if
end repeat
set note of this_person to new_note
end repeat
save
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment