Re: AppleScript and Email clients
Re: AppleScript and Email clients
- Subject: Re: AppleScript and Email clients
- From: David Graham <email@hidden>
- Date: Thu, 3 Jan 2002 21:57:47 -0800
At 6:09 PM +0100 1/3/02, Sander Tekelenburg wrote:
>
> Have a look at John Delacour's informative pages for scripting Eduora:
>
> <http://www.eremita.demon.co.uk/scripting/applescript/eudora.html>
>
>
I have never been able to figure this out. It looks to me like this only
>
works with manual filters: John writes:
>
>
start notifying +event CSOmnlns;
>
Description : Notify an application [when this happens]
>
Syntax : start notifying reference [when]
>
Value for 'reference' : an application to notify (an alias
>
or file reference)
>
>
Values for optional [when] (what to notify the application of)
>
>
[...]
>
>
* has manually filtered +constant eNotmFil;
>
>
It looks to me like scripts can only be triggered by 'manual filters'. Do I
>
misunderstand? Is it in fact possible to have 'automatic filters' trigger
>
scripts? That would be far out!
Notification and filters are two different beasts with one exception. When you tell Eudora to start notifying an application (or Applet) it sends various events to that app. The app decides what to do with that information, if at all. So as far as notification and filters go, the manual filter is only one event that can trigger a notification. It's not necessary for automatic filters to trigger a script, because Eudora can notify your script directly when one of the following events occur:
[when mail arrives/mail sent/will connect/has connected/has manually filtered]
Example:
I created a background only applet (yeah, I know it's not a good thing to do) that runs at system startup on every machine at my company. It's sole purpose is to keep the address book in sync for all staff. Periodically I will send out an e-mail with a text attachment containing the most current company address book contents. Upon receiving mail Eudora sends a 'mail arrived' event along with the message list. My applet looks for a particular subject line from me (along with a few other obscure headers for security). If the subject is found a dialog is presented to the user prompting them to update their address book. If they OK the dialog the applet gathers the contents of the attachment and synchronizes the data with the user's address book. When the process is complete the attachment and the original message are deleted and the user is presented with a positive confirmation (or error message).
Now this is just one example of what can be accomplished. You could also have your applet look for messages from a particular contact, check that contact against your filemaker pro database and then copy the e-mail message into the appropriate fields in your database. It's important to understand that the filtering happens in your applet, not in Eudora.
--
:: dmgraham information solutions ... database, web & more ::
david m graham
4749 vandever ave, san diego, ca 92120
619.322.9698
http://www.dmgraham.n3.net