• 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: Address Book stops indexing after editing Notes field w/ Applescript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Find duplicate numbers and replace
  • Next by Date: Re: Find duplicate numbers and replace
  • Previous by thread: Re: Yet another Newbie
  • Next by thread: Re: Find duplicate numbers and replace
  • Index(es):
    • Date
    • Thread