From e87e5a3c6274eb08c98dbcdddf7a747ca2cbb6f3 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Tue, 9 Jun 2015 16:09:35 -0400 Subject: [PATCH] org-mac-link.el: Reduce Outlook App confusion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * org-mac-link.el (org-mac-outlook-message-open, org-as-get-selected-outlook-mail): Specify Microsoft Outlook.app non-ambiguously If the user has: - a virtual solution (Parallels, etc.) - with Office for PC installed - and configured to expose WinTel applications to the Macintosh Finder The AppleScript commands may try to select the WinTel version of "Microsoft Outlook". This—obviously—doesn’t work. By adding the Mac ~.app~ file extension and path, we reduce this confusion and more reliably call the Macintosh version of Outlook. TINYCHANGE Signed-off-by: Alan Schmitt --- contrib/lisp/org-mac-link.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/lisp/org-mac-link.el b/contrib/lisp/org-mac-link.el index e0636a523..c991dfa4a 100644 --- a/contrib/lisp/org-mac-link.el +++ b/contrib/lisp/org-mac-link.el @@ -580,7 +580,7 @@ The links are of the form ::split::." "Open a message in Outlook" (do-applescript (concat - "tell application \"Microsoft Outlook\"\n" + "tell application \"/Applications/Microsoft Office 2011/Microsoft Outlook.app\"\n" (format "open message id %s\n" (substring-no-properties msgid)) "activate\n" "end tell"))) @@ -589,7 +589,7 @@ The links are of the form ::split::." "AppleScript to create links to selected messages in Microsoft Outlook.app." (do-applescript (concat - "tell application \"Microsoft Outlook\"\n" + "tell application \"/Applications/Microsoft Office 2011/Microsoft Outlook.app\"\n" "set msgCount to count current messages\n" "if (msgCount < 1) then\n" "return\n"