Re: Deletion of Contacts
Re: Deletion of Contacts
- Subject: Re: Deletion of Contacts
- From: debt <email@hidden>
- Date: Thu, 08 Sep 2016 22:06:55 -0700
Persistence pays. I finally got it. This will delete every contact in the group whose date created is older than 30 days.
Marc
set the today to current date tell application "Contacts" set the_people to every person in group "FileMaker"
repeat with the_person in the_people set date_created to (value of custom dates of the_person whose label is "created") if date_created is not {} then set diff to (today - date_created) if diff > 2592000 then delete the_person end if end if end repeat save
end tell
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden