Re: Eudora "message 1" (or 2 or 3 or 0)
Re: Eudora "message 1" (or 2 or 3 or 0)
- Subject: Re: Eudora "message 1" (or 2 or 3 or 0)
- From: Rob Jorgensen <email@hidden>
- Date: Tue, 27 Jan 2004 18:35:11 -0500
At 10:10 AM -0700 1/27/04, David Crowe wrote:
The following snippet of AppleScript shows the currently selected (or
frontmost open) message's subject:
tell application "Eudora"
subject of message 1
end tell
The funny thing is, changing 1 to 2 or 0 or 3 or 4 ... gets exactly
the same result, even if multiple messages are selected or open.
Eudora doesn't provide access (via AppleScript) to more than one
selected message.
Even changing to "subject of every message" still returns the subject
of this one message.
Yup.
Is there a way to get the list of currently selected messages in
Eudora? There is a way to get the currently selected text, but I
can't see any overt way to get more than the first selected message.
Here's a technique offered by John Delacour (he must have
unsubscribed from this list). The unfortunate side effect of this is
that selected messages won't be selected after running the script.
tell application "Eudora"
set ls to {}
set _subjects to {}
set w to the name of the front window
try
file of mailbox w
on error
tell me to display dialog "A mailbox summary must be frontmost" with icon 0
return
end try
repeat
try
set end of ls to move message "" to end of mailbox w
on error
exit repeat
end try
end repeat
repeat with m in ls
set end of _subjects to subject of m
end repeat
_subjects
end tell
Feel free to join those of us who have already asked Eudora's
developers to provide terminology for selected messages.
-- Rob
_______________________________________________
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.