From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Christophe Helary Subject: Re: Applescript help Date: Mon, 13 Nov 2017 19:36:20 +0900 Message-ID: <9CD5D8E0-AACB-404D-834D-B1B7E56D5F12@gmail.com> References: Mime-Version: 1.0 (Mac OS X Mail 11.1 \(3445.4.7\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_6FF90565-2689-4A84-A188-544987D510DF" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEC6Q-0007Os-NA for emacs-orgmode@gnu.org; Mon, 13 Nov 2017 05:36:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eEC6M-0004PI-MY for emacs-orgmode@gnu.org; Mon, 13 Nov 2017 05:36:30 -0500 Received: from mail-pf0-x22b.google.com ([2607:f8b0:400e:c00::22b]:56294) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eEC6M-0004OB-HB for emacs-orgmode@gnu.org; Mon, 13 Nov 2017 05:36:26 -0500 Received: by mail-pf0-x22b.google.com with SMTP id 17so11522619pfn.12 for ; Mon, 13 Nov 2017 02:36:26 -0800 (PST) Received: from [192.168.24.52] (pl27304.ag0304.nttpc.ne.jp. [128.53.17.168]) by smtp.gmail.com with ESMTPSA id d8sm33291547pfh.178.2017.11.13.02.36.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Nov 2017 02:36:23 -0800 (PST) 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" To: Org-mode --Apple-Mail=_6FF90565-2689-4A84-A188-544987D510DF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Nov 13, 2017, at 17:39, Alan Schmitt = wrote: >=20 > On 2017-11-11 20:06, Jay Iyer writes: >=20 >> Hi, in my Org workflow, I am trying to use the do-applescript = function to >> hide an active Emacs session. Can you tell me what I am doing wrong = with >> the following that I think should work but is not? Thanks. -jay >>=20 >> (do-applescript "tell application \"Finder\" set visible of = application >> process \"Emacs\" to false") >=20 > Don't you need an "end tell"? "end tell" if it's a block "to" if it's a line: >> (do-applescript "tell application \"Finder\" to set visible of = application process \"Emacs\" to false") Jean-Christophe Helary ----------------------------------------------- @brandelune http://mac4translators.blogspot.com --Apple-Mail=_6FF90565-2689-4A84-A188-544987D510DF Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

On Nov 13, 2017, at 17:39, Alan Schmitt <alan.schmitt@polytechnique.org> wrote:

On = 2017-11-11 20:06, Jay Iyer <jayiyer09@gmail.com> writes:

Hi, in my Org workflow, = I am trying to use the do-applescript function to
hide an = active Emacs session.  Can you tell me what I am doing wrong = with
the following that I think should work but is not? =  Thanks. -jay

(do-applescript "tell = application \"Finder\" set visible of application
process = \"Emacs\" to false")

Don't you = need an "end tell"?

"end tell" if it's a block "to" if it's a = line:

(do-applescript "tell = application \"Finder\" to set visible of application process = \"Emacs\" to false")



Jean-Christophe Helary
-----------------------------------------------
@brandelune http://mac4translators.blogspot.com


= --Apple-Mail=_6FF90565-2689-4A84-A188-544987D510DF--