Re: Scripting Lotus Notes
Re: Scripting Lotus Notes
- Subject: Re: Scripting Lotus Notes
- From: David Wignall <email@hidden>
- Date: Wed, 28 May 2003 22:31:34 +1200
on 28/5/2003 5:44 AM, Chad Chelius at email@hidden wrote:
>
I have a customer that I need to update a script for to work with Lotus
>
Notes. Unfortunately I don't have a copy of Lotus Notes to work with. Can
>
anyone tell me the syntax to create a new mail message with the word "Test"
>
as the Subject in Lotus Notes and then issue the send command? Thanks in
>
advance.
Apparently this works:
property ToAddress : "email@hidden"
property CCAddress : "email@hidden"
tell application "Notes"
set myDB to make new database with data {"", ""}
try
openmail myDB
on error
end try
set myDoc to make new document with data {myDB}
replaceitemvalue myDoc itemname "SendTo" newvalue ToAddress
replaceitemvalue myDoc itemname "Subject" newvalue "Test"
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
Watch for a line break in the middle there. This is from the Notes
AppleScript Programming database. It's not working for me on a Release
Candidate for r6 but there is evidence that it works with r5. Have a look at
<
http://www-10.lotus.com/ldd> and search for AppleScript
--
Dave
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.