emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: [PATCH] - Org Mac Outlook - Fix Call to Outlook in some cases
@ 2015-12-14 17:12 Mike McLean
  2015-12-18 10:18 ` Alan Schmitt
  0 siblings, 1 reply; 2+ messages in thread
From: Mike McLean @ 2015-12-14 17:12 UTC (permalink / raw)
  To: emacs-orgmode


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

Updated to fix a typo in the defcustom’s documentation string.



On Mon, Dec 14, 2015 at 11:22 AM, Mike McLean <mike.mclean@pobox.com> wrote:

> Earlier in this thread, Rasmus suggested “Perhaps it should be a
> defcustom?”
>
> With a new version (2016) of Microsoft Outlook for Mac that does not
> install inside of a "Microsoft Office 2011" directory, this indeed should
> be a defcustom.
>
> This patch accomplishes that change. (It also changes the default to
> /Applications/Microsoft Outlook.app which is the filesystem path of Outlook
> 2016.
>
>
> On Wed, Jun 10, 2015 at 2:17 AM, Alan Schmitt <
> alan.schmitt@polytechnique.org> wrote:
>
>> On 2015-06-09 22:20, Mike McLean <mike.mclean@pobox.com> writes:
>>
>> > Here is a version of the patch with a (hopefully) correct Changelog
>> format
>>
>> Applied and pushed, thanks!
>>
>> Alan
>>
>> --
>> OpenPGP Key ID : 040D0A3B4ED2E5C7
>> Weekly CO₂ average (2015-05-30, Mauna Loa Observatory): 403.41 ppm
>>
>
>

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

[-- Attachment #2: 0001-org-mac-link.el-Make-path-to-Microsoft-Outlook-custo.patch --]
[-- Type: application/octet-stream, Size: 2483 bytes --]

From d168acf969a7536996be573d846d30085ea08a9f Mon Sep 17 00:00:00 2001
From: Mike McLean <mike.mclean@pobox.com>
Date: Mon, 14 Dec 2015 11:09:03 -0500
Subject: [PATCH] org-mac-link.el: Make path to Microsoft Outlook customizable

* org-mac-link.el (org-mac-outlook-path): New Custom String to hold the file system path to Microsoft Outlook
(org-mac-outlook-message-open, org-as-get-selected-outlook-mail): Use
 the new custom string instead of hard-coding the path to Outlook
---
 contrib/lisp/org-mac-link.el | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/contrib/lisp/org-mac-link.el b/contrib/lisp/org-mac-link.el
index 01556f7..e04fb80 100644
--- a/contrib/lisp/org-mac-link.el
+++ b/contrib/lisp/org-mac-link.el
@@ -21,7 +21,11 @@
 ;; Version: 1.3
 ;; Author: Alan Schmitt <alan.schmitt@polytechnique.org>
 ;; Consistently use `org-mac-paste-applescript-links'
-;; 
+;;
+;; Version 1.4
+;; Author: Mike McLean <mike.mclean@pobox.com>
+;; Make the path to Microsoft Outlook a `defcustom'
+;;
 ;; This file is not part of GNU Emacs.
 ;;
 ;; This program is free software; you can redistribute it and/or modify
@@ -113,6 +117,12 @@
   :group 'org-mac-link
   :type 'boolean)
 
+(defcustom org-mac-outlook-path "/Applications/Microsoft Outlook.app"
+  "The path to the installed copy of Microsoft Outlook.app. Do not escape spaces as the AppleScript call will quote this string."
+  :tag "Path to Microsoft Outlook"
+  :group 'org-mac-link
+  :type 'string)
+
 (defcustom org-mac-grab-devonthink-app-p t
   "Add menu option [d]EVONthink to grab links from DEVONthink Pro Office.app."
   :tag "Grab DEVONthink Pro Office.app links"
@@ -610,7 +620,7 @@ The links are of the form <link>::split::<name>."
   "Open a message in Outlook"
   (do-applescript
    (concat
-    "tell application \"/Applications/Microsoft Office 2011/Microsoft Outlook.app\"\n"
+    "tell application \"" org-mac-outlook-path "\"\n"
     (format "open message id %s\n" (substring-no-properties msgid))
     "activate\n"
     "end tell")))
@@ -619,7 +629,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 \"/Applications/Microsoft Office 2011/Microsoft Outlook.app\"\n"
+    "tell application \"" org-mac-outlook-path "\"\n"
     "set msgCount to count current messages\n"
     "if (msgCount < 1) then\n"
     "return\n"
-- 
2.6.4


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

* Re: [PATCH] - Org Mac Outlook - Fix Call to Outlook in some cases
  2015-12-14 17:12 [PATCH] - Org Mac Outlook - Fix Call to Outlook in some cases Mike McLean
@ 2015-12-18 10:18 ` Alan Schmitt
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Schmitt @ 2015-12-18 10:18 UTC (permalink / raw)
  To: Mike McLean; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 293 bytes --]

On 2015-12-14 18:12, Mike McLean <mike.mclean@pobox.com> writes:

> Updated to fix a typo in the defcustom’s documentation string.

Applied and pushed, thanks.

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Athmospheric CO₂ (Updated December 13, 2015, Mauna Loa Obs.): 401.31 ppm

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-14 17:12 [PATCH] - Org Mac Outlook - Fix Call to Outlook in some cases Mike McLean
2015-12-18 10:18 ` 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).