Browse Source

org-mac-link.el: Reduce Outlook App confusion

* 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 <alan.schmitt@polytechnique.org>
Mike McLean 5 years ago
parent
commit
e87e5a3c62
1 changed files with 2 additions and 2 deletions
  1. 2 2
      contrib/lisp/org-mac-link.el

+ 2 - 2
contrib/lisp/org-mac-link.el

@@ -580,7 +580,7 @@ The links are of the form <link>::split::<name>."
   "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 <link>::split::<name>."
   "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"