From: Mike McLean <mike.mclean@pobox.com>
To: Alan Schmitt <alan.schmitt@polytechnique.org>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Fwd: Patch - Org Mac Outlook - Fix Call to Outlook in some cases
Date: Tue, 9 Jun 2015 16:20:30 -0400 [thread overview]
Message-ID: <CANid5Q59HpTFq1DsyiZxH3PFhweHQ4VNWTPzzovtwYD8Wb2Osw@mail.gmail.com> (raw)
In-Reply-To: <CANid5Q6PGNLa4=cMDA3aW7sFWxyBdvsE9Ce2NL++0htUjbO0YQ@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2165 bytes --]
Here is a version of the patch with a (hopefully) correct Changelog format
[image: --]
Mike McLean
[image: https://]about.me/mikemclean
<https://about.me/mikemclean?promo=email_sig>
On Thu, Apr 9, 2015 at 5:27 PM, Mike McLean <mike.mclean@pobox.com> wrote:
> @Rasmus - I created the first version of Org Mac Outlook and at the time
> didn't have an active virtual running so didn't notice the difference.
>
> Commit ff771c5c7eab5c4d4a60e9f1270319758961338d
> Author: Mike McLean <mike.mclean@pobox.com>
> AuthorDate: Sat Sep 7 16:29:40 2013 -0400
> Commit: Carsten Dominik <carsten.dominik@gmail.com>
> CommitDate: Sun Sep 8 07:56:30 2013 +0200
>
> Add Microsoft Outlook Support to org-mac-link
>
> @Alan - It does make a different if you have "Microsoft Outlook" as a
> shortcut into a Windows virtual that has been exported/exposed to the Mac
> OS via something like the Parallels “Windows apps added to Launchpad”
> feature. “Microsoft Outlook” may try to launch the Windows Virtual
> “Microsoft Outlook.app” will force the OS X native version.
>
>
>
> On Thu, Apr 9, 2015 at 1:11 PM, Alan Schmitt <
> alan.schmitt@polytechnique.org> wrote:
>
>> On 2015-04-09 15:59, Mike McLean <mike.mclean@pobox.com> writes:
>>
>> > Hello - I just noticed that this patch does not seem to have been
>> applied. Is
>> > there a problem with it?
>>
>> I'd be happy to apply it. I have a question about it:
>>
>> > 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.
>>
>> I tried this AppleScript
>> #+begin_src applescript
>> tell application "Mail.app"
>> activate
>> end tell
>> #+end_src
>>
>> and as I ran it it got normalized to
>> #+begin_src applescript
>> tell application "Mail"
>> activate
>> end tell
>> #+end_src
>>
>> Does the ".app" suffix really make a difference?
>>
>> Best,
>>
>> Alan
>>
>> --
>> OpenPGP Key ID : 040D0A3B4ED2E5C7
>>
>
>
[-- Attachment #1.2: Type: text/html, Size: 7371 bytes --]
[-- Attachment #2: 0001-org-mac-link.el-Reduce-Outlook-App-confusion.patch --]
[-- Type: application/octet-stream, Size: 1923 bytes --]
From 706bd67e4cfa2242892ebdc8a06f8a44e9b9e006 Mon Sep 17 00:00:00 2001
From: Mike McLean <mike.mclean@pobox.com>
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
---
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..c991dfa 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 \"/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"
--
2.4.3
next prev parent reply other threads:[~2015-06-09 20:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CANid5Q59HpTFq1DsyiZxH3PFhweHQ4VNWTPzzovtwYD8Wb2Osw@mail.gmail.com \
--to=mike.mclean@pobox.com \
--cc=alan.schmitt@polytechnique.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).