How do I delete a custom date (in addressbook) with applescript

I can't figure out how to delete a custom date for a contact.  I've worked with addresses and emails, phone numbers, but this one eludes me.
I want the script to go through all my contacts and delete every custom date whose label is "Mail Received"
I've searched and found a few people who had problems deleting custom dates, but I can't find an answer...
Thanks,

Hi,
Delete a custom date  doesn't work,  it's a bug.
Setting the value of the custom date to "missing value" works here (Mac OS X 10.5.8), but this generates an error (error : AppleEvent handler failed), I use a try block
Try this script
tell application "Address Book"
     repeat with theseDates in (get custom dates of people whose its label = "Mail Received")
          repeat with thisDate in theseDates
               try
                    set value of thisDate to missing value
               end try
          end repeat
     end repeat
     save
end tell

Similar Messages

  • I would like to know how to to deleta a custom template in Pages

    I would like to know how to to delete a custom template in Pages

    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=215&highlight=delete +template&mforum=iworktipsntrick
    Peter

  • How do I delete all my data from computer mac?

    how do I delete all my data from computer mac?

    The Startup Manager may be necessary if the 'C' key fails:
    Use the Option key, when possible instead of 'C' key to boot discs

  • If I lost my IPHONE5, i didnt set up "find my iphone", how can i locate it? if cant, how can i delete all phone data by itunes on my computer?

    i didnt set up "find my iphone", how can i locate it? if cant, how can i delete all phone data by itunes on my computer?

    ThisGal_Drea wrote:
    i have my iphone set up with itunes on one computer, but i recently bought my own computer. How do I set up my iphone with the new itunes account?
    Do you mean iTunes library?
    iTunes account is what you use to make iTunes purcahses.
    iTunes library is what is on your computer.
    It says my phone can only be set up woth one itunes account. How do I remove the previous account?
    No, it tells you it can only be sync'd with one iTunes library.
    Simplest way is to copy the entire /Music/iTunes/ folder (thisis the iTunes library) from old computer to new computer.

  • How can we delete SID table data and Text table data

    Hi,
    How can we delete SID table data and Text table data of any
    InfoObject.

    Hi,
    Go to transaction SE14, give the technical name if the table:
    /BIC/T<InfoObject Name>   for Text Table
    /BIC/S<InfoObject Name>  for SID Table
    Select "Table" in the given 4 options below  &  hit Edit button.
    in the next screen select "Direct"
    & also select "detele data" radio button.
    & hit  "Activate & adjust database".
    this will delete the complete data from the tables.
    Note: before deleting the SID's make sure of the consequences & after effects.
    Also the SID gets generated the next time you load master data/transaction data only for those records which were loaded..
    Regards,
    Iliyas

  • I want to donate an old iphone.  How do I delete all the data on it?

    I want to donate an old iphone.  How do I delete all the data on it?

    settings - general - reset - erase all content and settings.

  • How to edit/delete a custom label for a tel number for example in contacts?

    How to edit/delete a custom label for a tel number for example in contacts?

    Alfre311 wrote:
    I've been trying to find a way to do this since I updated to IOS 7, and I've just found the solution/explanation, even tho is a bit heavy to carry out.
    IOS 6 creates custom labels and save them giving you the option to delete them.
    IOS 7 creates custom labels but don't save them, so there is no need to have the option to delete them.
    But here comes the problem, if you have some custom labes saved in you Iphone / Ipad with IOS 6 and you update it to IOS 7, the device will keep those labels saved, but you wont be able to delete them.
    I realized this by going to contacts on Icloud. There those labels that I had on my devices weren't there. So simply restoring your device and configuring it as a new one to later sync your Icloud Contacts, will solve the problem.
    I know this post is old, but I might just try this with iOS 8. I have outdated custom labels that annoy me, because I still seem them in the list as options. If I get desperate enough, I may try your solution.

  • My daughter and i share an itunes account. how do i delete her and set her up with her own?

    my daughter and i share an itunes account. how do i delete her and set her up with her own?

    You need to make an iTunes Store account in her name and with her unique Apple ID. Note that everything she has purchased and downloaded under your Apple ID will not transfer to hers. She will need (or you will) to repurchase all of her iTunes Store items.
    She will also need her own user account on the computer if you share the same computer.

  • ? How do I delete large blocks of empty space with Adobe Acrobat Pro?

    How do I delete large blocks of empty space with Adobe Acrobat Pro?

    How can you delete "empty space"? If you mean that you want to delete lines,
    like in Word, so that the text afterwards will go "up the page", then you're
    out of luck. You should do that in the original file, and then re-create the
    PDF.

  • How do I delete a number of duplicate tunes with one operation?

    How do I delete a number of duplicate tunes with one operation?

    See here: https://discussions.apple.com/thread/3293239?start=0&tstart=0
    B-rock

  • How do I delete my user ID photo, taken with the camera in the MacBook Pro.  It keeps appearing randomly when I sign in....even after I make changes.

    How do I delete my user ID photo, taken with the camera in the MacBook Pro (when you first buy and set up the computer...).  The photo keeps appearing randomly, even after I've changed it to a "better picture".  I can't get the change to "stick".  Anyone else having trouble with this?  Thanks!

    what OS are you using?

  • How do I delete all the imported (not synchronized with itunes) photos on my ipad ?

    how do I delete all the imported (not synchronized with itunes) photos on my ipad ?

    Depending on how many photos there are, you can do it diretly on the iPad via the trashcan icon in the top right corner if viewing the photos in full screen, or via the icon of the box with the arrow coming out of it in thumbnail view and selecting the photos to delete (there is no select all option).
    Or you can connect the iPad to your computer and do it via Windows Explorer on a PC by selecting the photos and pressing delete, or on a Mac iPhoto/Aperture should have a delete option at the end of their import dialogues.

  • How do I delete apps from my iPhone 4s with the iOS 8 updates?

    How do I delete apps from my iPhone 4s with the iOS 8 updates?

    You simply need to press and hold the app icon on your home screen until it "shakes", then press the red icon to remove the app.

  • How do i delete photos from my iPhone 4S with ios7?

    How do i delete photos from my iPhone 4S with ios7?

    I have seen an solution:
    1. When in the iOS 7 Photo app you tap Photo button in the bottom toolbar.
    2. Then you tap Select in the top right Navbar
    3. Then find a photo which is NOT in the Photo-stream and NOT in the Camera Roll. I have a bunch of these for some reason after updating to iOS 7. These photos will get a checkmark, but will not turn the trash can blue.
    4. You can then select a photo that IS IN Photo-stream. It will also get a checkmark and the counter will display (2), and the trash can will turn Blue.
    5. You can then tap the blue trash can. The Photo-stream selected photo gets deleted BUT the photo the selected photo that is NOT in Photo-stream and NOT in camera roll IS Still There!
    Or you can have a look this article: how to delete photos from iPhone

  • How do I delete documents and data on the iPhone 5?

    I've been seeing responses such as turning it off, so I did. However I didnt change my memory at all and when I found out whats using it up it was message with (saved) next to it. So i deleted some conversations from other contacts, but it barely dropped to like 1 GB. I check and check to see what else is being used up and music I don't have a problem with and I always delete pics and apps, like google drive. Can someone tell me how can i delete even more of documents and data?

    gail from maine wrote:
    Hey, you said "sorry"! I think that is very nice....
    GB
    That is certainly a possible interpretation.

Maybe you are looking for

  • BAPI_GOODSMVT_CREATE error messages

    Hi,   I'm using BAPI_GOODSMVT_CREATE for Goods issue. I'm trying to find out the possible error conditions when using this BAPI. But I'm not able to get te list of error return messages given by this BAPI. My program is calling this BAPI. To prepare

  • How to stop the auto updater in N900 application m...

    Hey guys, Anyone know how to stop the auto updater in N900 application manager ? Coz when i connect via wifi or 3G, it always try to search for updates...Coz of that i cant search the web properly until its over. Specially when i connect via GPRS, i

  • Export to PDF from VC does not work

    Hello experts, I tried to use the system command to export the VC data to PDF. However instead of opening the pdf file, it opens the selection screen of the BI query. Can anyone help to check the link I used as a hyperlink (as perovided in the SAP ho

  • Problem in Opening JPopupMenu

    Hi We are facing a problem in opening JPopupMenu in multiple browser windows. We have a parent window which has a JApplet. We have another window which is a child window of the parent. That also has a different applet. When we right click on the appl

  • Internet connection locks-up have to reset router 3-4 times a day

    Router Actiontec GT704-WG Sometimes I am able to reach the router from Firefox or IE and it indicates no problems, but I cannot connect to the internet or ping any addresses. Other times I cannot even get to the router. Turning off the router and the