Re: Scripting Eudora
Re: Scripting Eudora
- Subject: Re: Scripting Eudora
- From: Rob Jorgensen <email@hidden>
- Date: Tue, 6 Feb 2001 23:38:42 -0500
On 2/6/01, Dale Saukerson commented on "Scripting Eudora":
Can someone point me towards some docs or offer some sample code for
scripting Eudora?
I'm still a rookie and barely understand how to put together syntax
to interpret/use the dictionary. I've finished the first 160 pages
of the language guide but I find the learning curve hasn't begun to
flatten out yet.
All I want to do is select read messages in one mailbox and move
them to another mailbox using the filters keystroke (command J).
I've figured out how to count all the messages, but I can't figure
out how to count or get only a subset like read or unread. I
completely fail to understand how to use the message status syntax.
I don't think that you can script the filtering process (within
Eudora) but this will give you an example of Eudora's syntax:
set moveThese to {}
tell application "Eudora"
repeat with i from 1 to count of messages of mailbox "In"
if status of message i of mailbox "In" is already read then
set moveThese to moveThese & (id of message i of mailbox "In")
end if
end repeat
repeat with x from 1 to count of items of moveThese
move message id (item x of moveThese) of mailbox "In" to end of mailbox "Trash"
end repeat
end tell
It's not the perfect solution, but it's late and I'm sleepy. :p
Later,
Rob Jorgensen
Ohio, USA