Re: A reference to
Re: A reference to
- Subject: Re: A reference to
- From: John Delacour <email@hidden>
- Date: Sat, 9 Aug 2003 00:28:09 +0100
At 4:07 pm -0600 8/8/03, Doug McNutt wrote:
Same thing with "start" instead of "beginning" but the word "start"
does not get bolded by the Script Editor. JD's "end of" seems to be
magic. How can we get anything done without his examples?
It boils down to this -- and this is not peculiar to Eudora. In your
Eudora dictionary you will read:
move: Move object to a new location
move reference -- the object to move
to location reference -- the new location for the object
You've made much of 'reference' but paid no attention to 'location
reference'. A 'mailbox' is not a 'location reference', <<class
insl>> (insertion location).
The commands 'make', 'duplicate' and 'move' require a 'location reference'.
'at end of', 'at beginning of' are examples of location references.
They have no relation at all with 'starts with', 'ends with', 'begins
with' etc.
Applescript talks in tokens. The underlying classes, events and
constants addressed by these "English-like" tokens are a great deal
less English-like.
If there is only one possible location for a new object, most
applications will allow the omission of the location reference. For
example in TextEdit it is allowed but not (thank goodness!) required,
to write:
tell application "TextEdit" make document at end of documents
tell application "TextEdit" make document at end of it
(See the archive for some satirical Mail routines on this theme.)
Since there is only one permitted location, this is interpolated.
In Eudora's case, there is ALWAYS more than one possible insertion
location and it is not Eudora's job to guess which is the most likely
if you omit it.
JD
_______________________________________________
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.