Re: Address Book
Re: Address Book
- Subject: Re: Address Book
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 01 Sep 2002 14:38:43 -0700
On 9/1/02 2:33 PM, I wrote:
>
On 9/1/02 1:01 PM, "John Delacour" <email@hidden> wrote:
>
>
> There was nothing very Cocoa about Eudora 1.5.3. location reference
>
> has been about since the very beginning.
>
>
>
> Compare:-
>
>
>
> tell app "Eudora" to make message at end of mailbox 2
>
> -- == make message at the beginning of mailbox "out"
>
>
>
>
>
> tell application "TextEdit" to make document at end of documents
>
>
<snip AppleEvent stuff>
>
>
>
> Why anyone should choose to type "beginning" rather than "end" beats me.
>
>
Me too, but that's what the Address Book scripts Apple ships with OS 10.2
>
all have. They keep supplanting earlier element entries with later ones so
>
you end up with all your imports back to front!
>
>
In Outlook Express, Entourage, and many other apps, you don't need to act
>
as if each object maintains a nest of lists for each class of elements.
>
You just make a new element 'at' its parent, and that's it:
>
>
tell application "Microsoft Entourage"
>
set theMsg to make new outgoing message at the in box folder with
>
properties {whatever} make new attachment at theMsg with properties
>
{whatever}
>
>
>
make new contact with properties {whatever} -- (at the application)
>
make new email address at contact "Joe Blow" with properties
>
{whatever} end tell
>
>
Interesting that Eudora requires the beginning/end of business.
>
I guess it's the idea of the group of elements being a Collection object
that some languages have. But AppleScript doesn't have such an animal, so
it's interesting that some applications implement it this way. In the case
of the new Jaguar apps, it may possibly be due to the heritage of some of
the early implementers (in OS 10.1) being Unix programmers. Do you suppose
there's a similar reason in Eudora?
--
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.