I think that MS are trying to move away from the COM / DCOM model - and I found
it quite difficult to locate the documentation on the basic VBA type model
objects properties and methods for Outlook (as used by Scriptom). The MSDN kept
directing me to other APIs, like this:
https://docs.microsoft.com/en-us/office/dev/add-ins/excel/excel-add-ins-overview?product=excel
This was the sort of thing that I was doing:
org.codehaus.groovy.scriptom.Scriptom.inApartment {
def OutApp = new
org.codehaus.groovy.scriptom.ActiveXObject("Outlook.Application")
def myNameSpace = OutApp.GetNameSpace("MAPI")
//println myNameSpace.Folders.Count
def OutMail = OutApp.CreateItem(0)
OutMail.to = "[email protected]"
OutMail.CC = ""
OutMail.BCC = ""
OutMail.Subject = "This is the Subject line"
OutMail.Body = "Hi there"
OutMail.Send()
OutMail = null
OutApp = null
}
Merlin Beedell
0800 280 0525 / +44 (0)207 045 0520
DDI: +44 (0)207 045 0528
Mob: +44 (0)7876 226865
Cryoserver: A focused, flexible email archive delivered by experts
-----Original Message-----
From: vlkodlak [mailto:[email protected]]
Sent: 18 December 2017 00:53
To: [email protected]
Subject: Re: Scriptom
Hi,
I used scriptom in the past and it was a really great library.
Is there any hope that it will be woken up / reborn?
And is / will there be some alternative on Mac? I'd like to control MS app via
Groovy ...
Thanks
Tomas
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html