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: 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