• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Removing a field from Contacts/Address Book
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removing a field from Contacts/Address Book


  • Subject: Re: Removing a field from Contacts/Address Book
  • From: David Morrison <email@hidden>
  • Date: Mon, 26 Nov 2012 11:05:14 +1100

This one seems to do what you want here:

	tell application "Contacts"
		tell (people whose selected is true)
set value of (custom dates whose label is "other") to missing value
			save
		end tell
	end tell

Please be sure to try it on a small selection first... ;-)

Hehe, it works! I thought it was a case of getting the wording right and understanding the model. For Contacts, setting the field to missing value does the same thing as removing it.

Thanks.

David
_______________________________________________
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

References: 
 >Removing a field from Contacts/Address Book (From: David Morrison <email@hidden>)
 >Re: Removing a field from Contacts/Address Book (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Compte ICloud:iTunes
  • Next by Date: Getting error -1708 for Messages script
  • Previous by thread: Re: Removing a field from Contacts/Address Book
  • Next by thread: Xcode Installation
  • Index(es):
    • Date
    • Thread