From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jai Dayal Newsgroups: gmane.emacs.help Subject: Re: send selection or current line to Terminal/iTerm Date: Thu, 12 Jun 2014 17:59:20 -0600 Message-ID: References: <1402261104327-324145.post@n5.nabble.com> <1402586029056-324374.post@n5.nabble.com> <87r42tvpkr.fsf@debian.uxu> <87k38lvp9r.fsf@debian.uxu> <87d2edvnog.fsf@debian.uxu> <1402609430389-324400.post@n5.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1402617602 11968 80.91.229.3 (13 Jun 2014 00:00:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Jun 2014 00:00:02 +0000 (UTC) Cc: help-gnu-emacs To: klebsiella Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 13 01:59:57 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WvEuR-0000tF-CV for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Jun 2014 01:59:55 +0200 Original-Received: from localhost ([::1]:56092 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvEuR-0005SI-3a for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jun 2014 19:59:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvEuF-0005Rh-Ur for Help-gnu-emacs@gnu.org; Thu, 12 Jun 2014 19:59:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvEuE-0002A5-PK for Help-gnu-emacs@gnu.org; Thu, 12 Jun 2014 19:59:43 -0400 Original-Received: from mail-ve0-x22a.google.com ([2607:f8b0:400c:c01::22a]:37469) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvEuE-00029z-Iy for Help-gnu-emacs@gnu.org; Thu, 12 Jun 2014 19:59:42 -0400 Original-Received: by mail-ve0-f170.google.com with SMTP id oz11so2573524veb.15 for ; Thu, 12 Jun 2014 16:59:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=1YMW/uNq3xQX+1lCrVmrIjZrzpmqPQ1N3yGpzBwwafw=; b=FGoa3TFqzy3n1/tULM4lpQ1w+euvrIwGm4pJ0IA6xCYYmQZo3pedPMVnJk572weLW2 bCH73AIRXaU7bNGNoIQVXaWSxxSIPj9G4/AixUFLb8XIl31+Q4pjpQyf41l1qCT8BL3t 506WKsBMyG/dLKRgdYX8WKH9UoHPz5rkkSHRfliik6r9jS2u1uX9Muq72nHmeORcj+9q HlWNuEFZZtgK0MxOER/v2DIZWE86xTlRk1fE8DJKpD9khUnM6XSxbRIogyL2AAUlvSX6 83GjbNJtQ7gkjeeMrjl8KSXdZLQgOiurBTrCjM7zLlAX42rk4U7CyPaEPyfBTPAOxSG7 28tA== X-Received: by 10.58.211.133 with SMTP id nc5mr13762442vec.28.1402617580989; Thu, 12 Jun 2014 16:59:40 -0700 (PDT) Original-Received: by 10.220.112.10 with HTTP; Thu, 12 Jun 2014 16:59:20 -0700 (PDT) In-Reply-To: <1402609430389-324400.post@n5.nabble.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c01::22a X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98195 Archived-At: Okay, good, so it calls applescript. Is there a way to have emacs call applescript programs? It seems "yes", but I can't tell for sure. *http://www.emacswiki.org/emacs/EmacsForMacOS#toc21 * On Thu, Jun 12, 2014 at 3:43 PM, klebsiella wrote: > @ Emanuel: Thanks for the reply and the suggestions. Unfortunately, I do > not > know lisp beside the basics to optimize my .emacs. > > @jai: I agree with Emanuel statements. Actually, I have posted a similar > post on Stackoverflow and somebody already explained how it can be done but > I couldn't make it work: You can check it on the link pasted below. > However, > I posted the request here recently as I thought that their can be a more > elegant/builtin way to do it that I am not aware of ... > In summary, Sublime Text calls osascript to paste the active region in the > active session of the Terminal ... > > Maybe if someone knows lisp enough can follow on the explanation given in > the link below and check if he/she can make it work ? > > > http://stackoverflow.com/questions/22835546/emacs-aquamacs-send-current-line-or-selection-to-active-terminal > > > > -- > View this message in context: > http://emacs.1067599.n5.nabble.com/send-selection-or-current-line-to-Terminal-iTerm-tp324145p324400.html > Sent from the Emacs - Help mailing list archive at Nabble.com. > >