Eudora notification problems
Eudora notification problems
- Subject: Eudora notification problems
- From: Frank Watzl <email@hidden>
- Date: Sun, 24 Dec 2000 14:12:53 +0100
I am trying to use the notify feature built into Eudora.(MacOS 9.0.4, Eudora 5.0.1r in paid mode.)
Here is the code of a droplet I am using to "register" a stay-open applet to Eudora.
According to Qualcomm's documentation Eudora will then send the appropriate events to the application, which can handle them in it's own handlers.
--begin droplet
on open theList
repeat with anItem in theList
tell application "Eudora"
start notifying anItem
end tell
end repeat
end open
--end droplet
The code of the stay-open applet being notified is as follows:
*** Note: + equals "opening chevrons, ; equals closing chevrons ***
--begin stay-open applet
global openLog
set logFile to "" & (path to desktop folder) & "notiLog"
try
set openLog to open for access logFile with write permission
on error
set openLog to logFile
end try
on +event CSOmeNot; given +class eWHp;:whatHappened, +class eMLs;:messageList
if whatHappened is +constant eNotwArv; then writeToLog("mail arrives")
if whatHappened is +constant eNotwSnt; then writeToLog("mail sent")
if whatHappened is +constant eNotwWCn; then writeToLog("will connect")
if whatHappened is +constant eNotwHCn; then writeToLog("has connected")
if whatHappened is +constant eNotmFil; then writeToLog("has manually filtered")
end +event CSOmeNot;
on writeToLog(str)
global openLog
write "" & (current date) & tab & str & return to openLog
end writeToLog
on quit
try
close access openLog
end try
continue quit
end quit
--end stay-open applet
Ok, I launch the stay open applet, launch eudora.
Then I check mail, send mail, manually filter some messages, quit Eudora, quit the stay open applet.
Open the Logfile w/ SimpleText , hoping to find entries for
-will connect
-mail arrives
-mail sent
-has connected
-has manually filtered
in about this order. What I do find, however, reads for example like this:
Sonntag, 24. Dezember 2000 14:08:41 Uhr will connect
Sonntag, 24. Dezember 2000 14:08:41 Uhr will connect
Sonntag, 24. Dezember 2000 14:08:54 Uhr has manually filtered
Note that the will connect event is recorded twice, while the other events, except one, are omitted.
It it me who is doing wrong? Is it Eudora (being scripter's nightmare anyway)?
Any insight is higly appreciated,
Thank you
Frank Watzl