• 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: Laine Lee <email@hidden>
  • Date: Tue, 08 Apr 2008 12:37:44 -0500
  • Thread-topic: Address Book stops indexing after editing Notes field w/ Applescript?

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.  It's
> VERY possible that this is conditional on some other funky text in the
> Note field (maybe that paragraph character), though it seems unlikely.

Is it possible that your script reads unicode text as a string, thereby
introducing null characters (the extra Unicode byte for each character) into
one or more of your objects?

Maybe you could try something like this to get rid of nulls in improperly
converted text (I found it at the Bombich site), then test further.

sudo perl -p -i -e 's/\000//g' /path/to/target_file.txt

--
Laine Lee


 _______________________________________________
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

  • Follow-Ups:
    • Re: Address Book stops indexing after editing Notes field w/ Applescript?
      • From: Spamstop <email@hidden>
References: 
 >Address Book stops indexing after editing Notes field w/ Applescript? (From: spamstop <email@hidden>)

  • Prev by Date: Re: One Finder and one iTunes Question?
  • Next by Date: Re: Address Book stops indexing after editing Notes field w/ Applescript?
  • Previous by thread: Address Book stops indexing after editing Notes field w/ Applescript?
  • Next by thread: Re: Address Book stops indexing after editing Notes field w/ Applescript?
  • Index(es):
    • Date
    • Thread