Re: moving multiple *selected* messages in Eudora
Re: moving multiple *selected* messages in Eudora
- Subject: Re: moving multiple *selected* messages in Eudora
- From: John Delacour <email@hidden>
- Date: Tue, 18 Mar 2003 22:31:00 +0000
- Mac-eudora-version: 6.0a11
At 2:00 pm -0700 18/3/03, Doug McNutt wrote:
At 20:07 +0000 3/18/03, John Delacour wrote:
(Second level quotes are from me.)
the first message, the front message, message 1, message 0 and message ""
all denote the same object.
But the simple word "message" won't work and neither will "selected
message" or "last message"
'selected message' means nothing; it is not in the dictionary and
would be entirely superfluous if it were.
'message' is a class. How do you want it to "work".
tell application "Eudora"
set M to a reference to the front message
-->message 1 of application "Eudora"
get sender of M
-->"Doug McNutt"
get front message
--> X-Password: undefined
--> Date: Tue, 18 Mar 2003 14:00:47 -0700
--> To: email@hidden
get body of M
-->"At 20:07 +0000 3/18/03, John Delacour wrote:
-->(Second level quotes are from me.)
end tell
What code would I use to move the message "somewhere" while
retaining the illusion that it hasn't gone somewhere else? How about
"don't move message 1"?
tell application "Eudora"
activate
try
set msg to a reference to the front message
outgoing of msg
on error
return "no message available"
end try
if not my message_has_window(msg) then
set mbx to a reference to mailbox (name of front window)
set msgRef to move msg to end of mbx
--> message id 366305347 of mailbox "applescript-users"...
end if
end tell
on message_has_window(message_reference)
tell application "Eudora"
try
window of message_reference
return true
on error
return false
end try
end tell
end message_has_window
How does one know which window index to use when there is more than
one mailbox summary open? Is "Window 1" always the active window?
Window one is always on top.
The syntax "active window" is not understood.
Have you read Eudora's dictionary? Why should it be.
Auf Englische, one might have a couple of messages and a couple of
mailboxes open. Something is always the active window but it's not
clear at all that an Applescript will work on the selection one
expects.
Then make sure the window you want is frontmost.
tell application "Eudora"
activate
set index of window "applescript-users" to 1 -- ** o r **
open mailbox "applescript-users"
end tell
It's quite possible to have multiple mailbox summaries open with a
block of selected messages in each. Will your "try and move" code
step through the selections in all open windows?
Just step through the windows and close or change the index to move
to the next. You can do what you want. I can't actually imagine the
utility of what you're proposing and have no intention of writing a
script for it, but it's easy enough to do.
And what is meant by "topmost"? Is it the top one on the screen as
sorted - the illusion? Or is it the one that comes earlier in the
underlying mailbox text file?
Listen, why don't you just run a few little scripts and find out for
yourself. When I say topmost I never mean bottom-most, unlike
Mail.app. So long as you're not standing on your head.
Perhaps it's theological anxiety. I'm pushing 68 and FORTRAN never
had these problems.
Ah! Then I should have said Listen, SIR. You have a ten year lead on me :-)
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.