Scripting from Photos to Outlook
Scripting from Photos to Outlook
- Subject: Scripting from Photos to Outlook
- From: Christian Boyce <email@hidden>
- Date: Tue, 4 Jul 2017 19:58:54 -0700
Apple's Photos app has a Sharing button that lets you share selected items via
Apple's Mac Mail app. I want to use Outlook instead of Mail. I know that I can
go to Mail's Preferences and set Outlook as the default mail app. It looks
good, but it doesn't work. Outlook doesn't show up in the Sharing menu.
I have this idea that I could use AppleScript to do the job. The work flow
should be something like this:
1. Select some number of photos in Photos
2. Trigger an AppleScript-- perhaps as a Service via Contextual menu
3. Outlook opens up, creates a new outgoing email message, and the selected
photos are attached to the message.
I have this:
tell application "Photos"
set the_files to the selection
end tell
And I have this:
tell application "Microsoft Outlook"
activate
set the_Message to make new outgoing message
open the_Message
end tell
I think I know how to attach a file to an outgoing email message, but only if I
have a path to the file. I don't get a path when I select photos-- I get
something like this:
media item id "1xr4dfaef73d"
Maybe there's a way for me to get the path to the file on disk. That's where
I'm looking. But maybe there is another way to do it.
Any suggestions?
(Microsoft SHOULD provide the fix for this, but the problem's been around for a
few years and a few versions so it looks as if Microsoft isn't ever going to
fix it.)
Thank you for your help--
c
--
Christian Boyce
Christian Boyce and Associates
Mac, iPhone, and iPad Consultants
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden