emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Patch - Org Mac Outlook - Fix Call to Outlook in some cases
@ 2014-12-20 20:34 Mike McLean
  2015-04-09 13:59 ` Fwd: " Mike McLean
  0 siblings, 1 reply; 10+ messages in thread
From: Mike McLean @ 2014-12-20 20:34 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 427 bytes --]

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, we reduce this confusion and more reliably call the Macintosh
version of Outlook.

TINYCHANGE

[-- Attachment #1.2: Type: text/html, Size: 597 bytes --]

[-- Attachment #2: 0001-Reduce-confusion-around-Outlook-application.patch --]
[-- Type: application/octet-stream, Size: 1711 bytes --]

From 9e9b74a7352e49ce826153fa6859da3165cb5b9b Mon Sep 17 00:00:00 2001
From: Mike McLean <mike.mclean@pobox.com>
Date: Sat, 20 Dec 2014 15:22:13 -0500
Subject: [PATCH] Reduce confusion around Outlook application
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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, we reduce this confusion and more reliably call
the Macintosh version of Outlook.

TINYCHANGE
---
 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 e0636a5..fa2aa5b 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 <link>::split::<name>."
   "Open a message in Outlook"
   (do-applescript
    (concat
-    "tell application \"Microsoft Outlook\"\n"
+    "tell application \"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 \"Microsoft Outlook.app\"\n"
     "set msgCount to count current messages\n"
     "if (msgCount < 1) then\n"
     "return\n"
-- 
2.2.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-12-15 10:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-20 20:34 Patch - Org Mac Outlook - Fix Call to Outlook in some cases Mike McLean
2015-04-09 13:59 ` Fwd: " Mike McLean
2015-04-09 14:17   ` Rasmus
2015-04-09 17:11   ` Fwd: " Alan Schmitt
2015-04-09 21:27     ` Mike McLean
2015-06-09 20:20       ` Mike McLean
2015-06-10  6:17         ` Alan Schmitt
2015-12-14 16:22           ` Mike McLean
2015-12-15 10:00             ` Alan Schmitt
2015-04-09 17:14   ` Alan Schmitt

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).