Re: Address Book
Re: Address Book
- Subject: Re: Address Book
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 01 Sep 2002 14:33:48 -0700
On 9/1/02 1:01 PM, "John Delacour" <email@hidden> wrote:
>
At 12:23 am -0700 1/9/02, Paul Berkowitz wrote:
>
>
> ... Then you need the apparently Cocoa
>
> form of 'at beginning [or end] of emails' [or other elements like phones],
>
> as if the object maintains a list of these elements (even an empty list)
>
> just for the purpose of having new ones added on.
>
>
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"
>
>
core,crel,kocl:type(euMS), insh:insl{kpos:end , kobj:obj
>
{want:type(euMB), from:'null'(), form:indx, seld:2}}
>
>
>
>
tell application "TextEdit" to make document at end of documents
>
>
core,crel,insh:insl{kobj:obj {form:indx, want:type(docu),
>
seld:abso(+616C6C20;), from:'null'()}, kpos:end }, kocl:type(docu),
>
&subj:'null'(), &csig:magn(+00010000;)
>
>
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.
--
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.