Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // get a handle of Outlook App and enable standard additions
- outlook = Application("Microsoft Outlook");
- outlook.includeStandardAdditions = true
- //get the first selected message
- selectedMessage = outlook.selectedObjects()[0];
- //copy message id to clipboard
- outlook.setTheClipboardTo("" + selectedMessage.id())
- // this part is for future
- //todoist = Application("Todoist");
- //todoist.activate();
- // open message by the id retrieved from clipboard
- outlook.open(outlook.incomingMessages.byId(outlook.theClipboard()))
Add Comment
Please, Sign In to add comment