Skip to content

Instantly share code, notes, and snippets.


Daniel Da Cunha ddacunha

View GitHub Profile
ddacunha / OutlookSelectNext.scpt
Created Jun 20, 2018
[AppleScript] Select next message in Outlook 2016 (in Javascript)
View OutlookSelectNext.scpt
var outlook = Application('Microsoft Outlook')
var selectedMessageList = outlook.currentMessages()
for ( m of selectedMessageList) {
console.log( "selectedMessageList: " +
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 ( on keybase.
  • I have a public key ASBPT2yPHOrGPJqDdxjgml62_IZHu7Pm0hjrM6z2_Yp5XAo

To claim this, I am signing this object: