AppleScripting Outlook Express 5.02 on Mac OS 9
AppleScripting Outlook Express 5.02 on Mac OS 9
- Subject: AppleScripting Outlook Express 5.02 on Mac OS 9
- From: Andrew Duncan <email@hidden>
- Date: Fri, 07 Dec 2001 13:54:40 +1100
Hi,
I'm trying to write an AppleScript that grabs data from an Outlook Express
message and sends it to a FileMaker Pro database. I have the script running
on a message that is open in it's own window successfully, what I would like
however is to have the script run on a message that is selected/highlighted
in the inbox or other folder so that it can be run on a mail rule. The
script is as follows:
---
tell application "Outlook Express"
set myMessage to the displayed message of the front window
set senderAddress to sender of myMessage
set messageEmail to (address of senderAddress)
set messageBody to (source of myMessage)
end tell
tell application "FileMaker Pro"
activate
tell database 1
set record_to_modify to (create new record)
go to record_to_modify
set cell "email_work" of record_to_modify to messageEmail
set cell "notes" of record_to_modify to messageBody
do script "Set Fields from OE"
end tell
end tell
----
If anyone knows how to achieve this I'd love to hear from you.
Many thanks in advance.
Andrew