Created
January 7, 2012 10:47
-
-
Save deasmi/1574406 to your computer and use it in GitHub Desktop.
Create group of contacts with pictures in Mac address book
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" | |
try | |
set picGroup to group "Contacts with Pictures" | |
on error | |
set picGroup to make new group with properties {name:"Contacts with Pictures"} | |
end try | |
repeat with ThisOne in people | |
if (count of image of ThisOne) > 0 then | |
add ThisOne to picGroup | |
end if | |
end repeat | |
save | |
"Done" | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment