• 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 scripting bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Address Book scripting bug


  • Subject: Address Book scripting bug
  • From: Michelle Steiner <email@hidden>
  • Date: Thu, 27 May 2004 09:45:56 -0700

I just reported the following bug to Apple:

The applscript expression "date string of creation date of person 1" results in "NSCannotCreateScriptCommandError"

However, the following works:
set foo to (creation date of person 1)
date string of foo

This means that you can't have this construct:

tell Application "Address Book"
set TodaysPeople to the people whose (date string of creation date) is date string of (current date)
end tell

-- Michelle

--
Velveeta is to American cheese as American cheese is to cheese
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Address Book scripting bug
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: A funny think happened...
  • Next by Date: Re: Process whose frontmost *was* true?
  • Previous by thread: Re: Folder Actions: specific complaints please
  • Next by thread: Re: Address Book scripting bug
  • Index(es):
    • Date
    • Thread