From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Purcell Subject: Re: PATCH: org-mac-link.el: Don't fail on machines without Growl installed Date: Wed, 24 Sep 2014 20:59:58 +0100 Message-ID: <30EABF38-620E-4CDF-9C18-837848936F78@sanityinc.com> References: <7B9D9129-4BEC-42F3-851D-00D4D2A43A8A@sanityinc.com> Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWsjT-0002fD-B4 for emacs-orgmode@gnu.org; Wed, 24 Sep 2014 16:00:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XWsjN-0002w1-9G for emacs-orgmode@gnu.org; Wed, 24 Sep 2014 16:00:11 -0400 Received: from h1189701.stratoserver.net ([85.214.32.38]:49700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWsjN-0002lk-3n for emacs-orgmode@gnu.org; Wed, 24 Sep 2014 16:00:05 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Alan Schmitt Cc: emacs-orgmode@gnu.org On 24 Sep 2014, at 20:13, Alan Schmitt = 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 >=20 > 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 =93GrowlHelperApp=94= =92, then the code will not execute unless the app is present =97 = there=92s a precompilation step where, presumably, AppleScript = determines that the target application supports the listed commands. -Steve=