• 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
Address Book Custom Date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Address Book Custom Date


  • Subject: Address Book Custom Date
  • From: Rob Lewis <email@hidden>
  • Date: Tue, 18 Dec 2007 12:00:18 -0800

Not sure this helps, but I have had problems trying to script custom dates in Address Book. I have a couple of open bug reports on issues. 

One thing I remember is that
"make new custom date…" 

doesn't work unless you say
"make new custom date at end of custom dates…"
(even if there are no custom dates already defined)

Other kinds of Address Book objects don't require this, but, well, as we all know, there are quirks waiting to bite you around every corner. 

Also, I've found it impossible to delete a custom date with AS. It generates an internal error. 

I haven't experimented to see if any of this is fixed in Leopard. 

On Dec 18, 2007, at 10:52 AM, email@hidden wrote:

Hey all,

i'm writing a synchronization app between a SQLite database from a mobile

phone and Address Book.


if i understand well AddressBook the modification date is read only because

whn i want to change it i get an "NSInternalError".


then a workaround would be using "custom date" as a synchronization date and

i've tried :


*tell* application "Address Book"


*set* thePeople *to* *every* person *whose* last name = "Libelulle"


*if* (count *of* thePeople) = 1 *then*


*set* thePerson *to* *first* item *of* thePeople


*set* custom date *of* thePerson *to* current date


*set* cDate *to* custom date *of* thePerson


*end* *if*


*end* *tell*



where i get back {} and not current date. The "{}" seems to indicate "custom

date" is a list ???



then, how to set a custom date ?


 _______________________________________________
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

  • Prev by Date: Re: remember in keychain
  • Next by Date: Re: Bundle Content drawer - what's it good for?
  • Previous by thread: FW: [sd-talk] SD4 returning incorrect results
  • Next by thread: Applescript (Quicktime) "with replacing" bug
  • Index(es):
    • Date
    • Thread