Re: Importing address book from Eudora 3.1
Re: Importing address book from Eudora 3.1
- Subject: Re: Importing address book from Eudora 3.1
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 17 Sep 2002 07:29:35 -0700
On 9/17/02 7:10 AM, I wrote:
>
If a particular property - say, organization - has not been filled out for
>
a person, it simply doesn't exist, and trying to get it will error.
>
However, if you first get the 'properties' property (a record) of that
>
person, which is more efficient as it involves only one AppleEvent, then
>
organization will be 'missing value'. So you can work around that
>
possibility.
Oh yes: one thing you never, never want to do is set set any property of an
element to "". If you do that - say:
set home phone of thePerson to ""
then in the UI that blank entry is stuck there permanently. You see a 'home'
phone label with no value, and you simply can't click on it to change it
when in "Edit" mode. The best you can do is create a new phone number - home
or work or anything - but that blank one will stay there taking up space for
ever. You also can't set it to 'missing value'. The only way to get rid of
it is to delete it in AppleScript.
So that's what you need to do: never set its value to "" - delete it. Then
in the UI you'll see dimmed 'Phone' place-setting when in Edit mode, or
nothing when in normal (saved) mode.
One final tip you can see from the Apple scripts: you have to regularly
save addressbook
to preserve any changes you make. Otherwise they are not written to disk. An
odd arrangement.
--
Paul Berkowitz
_______________________________________________
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.