Applescript with Eudora
Applescript with Eudora
- Subject: Applescript with Eudora
- From: David Crowe <email@hidden>
- Date: Wed, 24 Apr 2002 09:21:27 -0600
I have been trying to write a script that deletes old messages from
some Eudora mailboxes.
Trying to get the syntax right I tried the statement:
count messages in mailbox "Out"
This worked.
I was also able to figure out that "local seconds" is the Date and
Time, comparable to 'current date'. I tried:
local seconds of message 1 in mailbox "Out"
and correctly got the date and time of the first message.
Having the basics under my belt, I then tried to count all messages
more than 30 days old:
count (messages in mailbox "Out" whose local seconds < ((current
date) - (30 * 60 * 60 * 24)))
For this I was rewarded with the message "Eudora got an error: Wrong
keyword for a special function". No matter what variations I tried, I
kept getting the same message.
I have since programmed a repeat loop to go through the mailbox one
message at a time. This works, but takes forever.
My hunch is that Eudora simply doesn't support operations using
'whose' to select a list. But, perhaps I just have the syntax wrong.
It took me a while to figure out, for example, that you can't
"delete" a message in a mailbox, you have to "move" it to the mailbox
"Trash".
On an aside, it seems to me that this is the fundamental reason why
AppleScript is not more popular. Eudora may only have implemented
part of the language and their documentation is virtually
non-existent (their manual on their website was last updated in
1995). Apple doesn't consider it their job to document all the
capabilities of AppleScript-capable applications. Dictionaries are
inadequate sources of documentation. The only commercial book I could
find (Ethan Wilde's AppleScript for the Internet) is very sloppy,
with an index that has never yet had the word that I'm looking for in
it, even if it is in the book (Display Dialog, current date are not
indexed, for example). Consequently, one is left to rely on sample
scripts, when available, or on this email list.
- David Crowe
http://www.cnp-wireless.com
_______________________________________________
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.