Skip to content

Instantly share code, notes, and snippets.

View ddacunha's full-sized avatar

Daniel Da Cunha ddacunha

View GitHub Profile
@ddacunha
ddacunha / OutlookSelectNext.scpt
Created June 20, 2018 01:25
[AppleScript] Select next message in Outlook 2016 (in Javascript)
var outlook = Application('Microsoft Outlook')
var selectedMessageList = outlook.currentMessages()
for ( m of selectedMessageList) {
console.log( "selectedMessageList: " + m.id())
}
var lastSelectedMessage = selectedMessageList[selectedMessageList.length-1] //set lastMessage to last item of msgList
console.log (lastSelectedMessage.subject())

Keybase proof

I hereby claim:

  • I am ddacunha on github.
  • I am ddacunha (https://keybase.io/ddacunha) on keybase.
  • I have a public key ASBPT2yPHOrGPJqDdxjgml62_IZHu7Pm0hjrM6z2_Yp5XAo

To claim this, I am signing this object: