Created
March 7, 2013 00:25
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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