Attach Files to a new Outlook 2016 message in Mac OS (High) Sierra or Mojave

Step by step instructions for using Applescript on Mac OS X High Sierra and Mojave to easily attach files to a new e-mail message in Outlook 2016 from a Finder window.

Paul

Paul

June 08, 2017 · 4 min read
Attach Files to a new Outlook 2016 message in Mac OS (High) Sierra or Mojave

Attaching files to e-mail

I often want to attach files from Finder to a new e-mail, and I use Outlook from Office 365 on Mac OS Sierra (and now updated for MacOS Mojave).

I know you can drag the selected file(s) to the Outlook icon in the Dock. But this is often an extra action. I just want to right click, and "Share", or similar.

Apparently Outlook 2016 (Office 365) does not ship anymore with the handy Automater scripts that used to accompany Outlook.

Using Applescript and Automator

After searching around the internet for different options, I found out that using Applescript together with Automator is the easiest way to do this.

In Automator:

on run {input, parameters}
	set SelectedItems to input

	tell application "Microsoft Outlook"
		set newMessage to make new outgoing message
		tell newMessage
			repeat with aFile in SelectedItems
				make new attachment with properties {file:aFile}
			end repeat
		end tell
		open newMessage
		get newMessage
		activate
	end tell
	return input
end run

Attach menu option available

Now when you go to Finder, select one or more files, and then right-click, you will see 'Attach to Outlook e-mail' at the bottom of the menu! Woohoo!

Breakdown

So what does the Applescript do? Let's break it down.

on run {input, parameters}
    set SelectedItems to input
tell application "Microsoft Outlook"
    set newMessage to make new outgoing message
tell newMessage
    repeat with aFile in SelectedItems
        make new attachment with properties {file:aFile}
    end repeat
end tell
open newMessage
get newMessage
activate
    end tell
    return input
end run

Similiar Posts

Copyright © 2025 brain-dump.space. All rights reserved.