Re: Address Book stops indexing after editing Notes field w/ Applescript?
Re: Address Book stops indexing after editing Notes field w/ Applescript?
- Subject: Re: Address Book stops indexing after editing Notes field w/ Applescript?
- From: Fabrizio <email@hidden>
- Date: Wed, 14 May 2008 19:44:13 +0200
On 4/6/08 10:49 PM, "spamstop" <email@hidden> wrote:
After playing around with Address Book's SQLite database, it seems that
using applescript to update the Note field causes the ZSTRINGFORINDEXING
string of ZCONTACTINDEX to become NULL for the modified contacts.
Yes, you're right. I encountered the same problem today. I managed to have Address Book rebuild the index, by updating the "first name" field. Try this way:
tell application "Address Book" save addressbook set NumPeople to (count of people) repeat with i from 1 to NumPeople set note of person i to (note of person i) set first name of person i to (first name of person i) end repeat save addressbook end tell
Fabrizio
|
_______________________________________________
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