ENHANCEMENT REQUEST: Support Applescript

Enhancement request: Please support Applescript to drive Notes. This used to exist (back in version 5.01a)

See this database on Notes Sandbox:

http://www-10.lotus.com/ldd/sandbox.nsf/PrintView/e6621c730727e8a3852567f4007eaba1?OpenDocument

Subject: Applescript is supported in Notes 8.5

What difficulty are you having with it?

Subject: AHhh… I see what I was doing wrong

WOW this is nice and VERY fast.

For other’s reference, here’s a simple script that works for me. I pulled this script for the V 5.0.1a sample script and it worked. You can find that database of sample scripts here:

Lotus Sandbox - AppleScript code examples for Notes

You might have to make some slight tweaks to update syntax to current Applescript but they work! Interesting is that these scripts are from 1999 and they still are relevant.

property ToAddress : “user@mailinator.com

property CCAddress : “user@mac.com

tell application “Notes”

set myDB to make new database with data {"", ""}

try

	openmail myDB

end try



set myDoc to make new document with data {myDB}

replaceitemvalue myDoc itemname "SendTo" newvalue ToAddress

replaceitemvalue myDoc itemname "Subject" newvalue "Untitled"

replaceitemvalue myDoc itemname "Body" newvalue "I'm actually trying to send this one"

replaceitemvalue myDoc itemname "CopyTo" newvalue CCAddress

send myDoc without attachform

end tell