Re: Eudora AppleScript Question...
Re: Eudora AppleScript Question...
- Subject: Re: Eudora AppleScript Question...
- From: Bill Briggs <email@hidden>
- Date: Thu, 23 Oct 2003 20:24:25 -0300
At 4:11 PM -0600 23/10/03, David Crowe wrote:
Currently I have a script that deletes the current message in Eudora by:
tell application "Eudora"
move message 1 to end of mailbox "Trash"
end tell
Does anybody (probably Jon Delacour) know why
delete message 1
doesn't work (..."message 1 doesn't understand the delete message")?
I suspect it's because in the Eudora dictionary "delete" is part of
the standard suite, in which "delete" means "make the object be
gone", and not part of the Eudora suite in which "delete" would have
to have a special meaning, viz, "transfer the message to the trash".
Since you can't have conflicting meanings, the term in the Standard
Suite rules.
It's a pity that the term "nuke", which is in Eudora's UI, isn't in
the Eudora suite. That would "make the object be gone".
The reason I'm asking is because I want to open the next unread
message in the mailbox "In". Is there any way to refer to this
message without scanning the mailbox?
Yes. This works.
tell application "Eudora"
set mRef to a reference to last message of mailbox "In"
move mRef to end of mailbox "Trash"
open mRef
end tell
The reference doesn't carry with the message to the new mailbox (at
least in the version I have in front of me), so the "open mRef"
command picks up the message you want and opens it. Any "scan" of the
mailbox is imperceptibly fast. I can't see any time delay on this
PowerBook. It's just there immediately.
I thought that perhaps "delete
message 1" would do the normal Eudora deletion which my preferences
have set to automatically open the next message.
Nope, and likely for the reason given above. It's not really a
"delete" that Eudora is performing (at least in terms of what it
means in normal AE parlance).
- web
_______________________________________________
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.