From: Steve Purcell <steve@sanityinc.com>
To: Alan Schmitt <alan.schmitt@polytechnique.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: PATCH: org-mac-link.el: Don't fail on machines without Growl installed
Date: Wed, 24 Sep 2014 20:59:58 +0100 [thread overview]
Message-ID: <30EABF38-620E-4CDF-9C18-837848936F78@sanityinc.com> (raw)
In-Reply-To: <m2d2akzv9w.fsf@polytechnique.org>
On 24 Sep 2014, at 20:13, Alan Schmitt <alan.schmitt@polytechnique.org> wrote:
> tell application "System Events"
> set growlHelpers to the name of every process whose creator type contains "GRRR"
> if (count of growlHelpers) > 0 then
> set growlHelperApp to item 1 of growlHelpers
> else
> set growlHelperApp to ""
> end if
> end tell
>
> I get an empty string as returned value. Is is the same for you?
Yes, that part works fine on its own even on my machine. But when the code passed to AppleScript includes 'tell application “GrowlHelperApp”’, then the code will not execute unless the app is present — there’s a precompilation step where, presumably, AppleScript determines that the target application supports the listed commands.
-Steve
next prev parent reply other threads:[~2014-09-24 20:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-24 11:12 PATCH: org-mac-link.el: Don't fail on machines without Growl installed Steve Purcell
2014-09-24 15:38 ` Alan Schmitt
2014-09-24 15:35 ` Steve Purcell
2014-09-24 19:13 ` Alan Schmitt
2014-09-24 19:59 ` Steve Purcell [this message]
2014-09-25 6:17 ` Alan Schmitt
2014-10-06 6:31 ` Alan Schmitt
2014-10-06 7:20 ` Nicolas Goaziou
2014-10-11 13:21 ` Bastien
2014-10-09 11:40 ` Alan Schmitt
2014-10-09 12:11 ` Steve Purcell
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=30EABF38-620E-4CDF-9C18-837848936F78@sanityinc.com \
--to=steve@sanityinc.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.