I am looking to do the following - create an Outlook outgoing rule that will save the sent email as an .eml file in a folder on my hard drive. I want to use an applescript wrapper to call an automator action to do this. I have created the automator action, but I am not sure how to get the email object passed into it from applescript (or if this is actually necessary). When I insert an automator action to "Get Selected Outlook Items", it literally does that - gets whatever message is selected, not the message that was just sent. I don't see anything within the Outlook automator actions that looks to be obvious to me as to how to get the correct object to the script. Also, I'm uncertain that my approach is sound as a whole. Here's what I'm doing:
Created automator action and saved as myapp.app containing:
"Save Outlook Items as Files" action
Created AppleScript with the following:
tell application "myapp" to launch
Created Outlook outgoing rule to call myapp
I am sure I am missing a critical component, so any help would be appreciated.
Thanks,
Bruce