From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Mastro Newsgroups: gmane.emacs.help Subject: Re: send selection or current line to Terminal/iTerm Date: Thu, 12 Jun 2014 14:28:42 -0700 Message-ID: References: <1402261104327-324145.post@n5.nabble.com> <1402586029056-324374.post@n5.nabble.com> <87r42tvpkr.fsf@debian.uxu> <87k38lvp9r.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1402608566 9493 80.91.229.3 (12 Jun 2014 21:29:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Jun 2014 21:29:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 12 23:29:19 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 1WvCYd-0002Q0-UE for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jun 2014 23:29:16 +0200 Original-Received: from localhost ([::1]:55767 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvCYd-0007nk-8L for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jun 2014 17:29:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38276) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvCYS-0007na-Gf for help-gnu-emacs@gnu.org; Thu, 12 Jun 2014 17:29:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvCYR-0001pC-Mi for help-gnu-emacs@gnu.org; Thu, 12 Jun 2014 17:29:04 -0400 Original-Received: from mail-ob0-x235.google.com ([2607:f8b0:4003:c01::235]:49999) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvCYR-0001p5-J2 for help-gnu-emacs@gnu.org; Thu, 12 Jun 2014 17:29:03 -0400 Original-Received: by mail-ob0-f181.google.com with SMTP id wp4so1973479obc.26 for ; Thu, 12 Jun 2014 14:29:02 -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 :content-type; bh=+XHvwn+vXVBAcTJK/sOdvi9beRXSm3mt2BDx2XlED30=; b=F/x9Jroa0PUtdIOE6uLAKiSPCDbsXw0A3ITVqfXlZ/NqUTozWvlRpfnizCXMlOi2u+ AuhI2ZKVaOHLX+Mw2ePbXkerG/O7kV+Ipi7gn00nDtUClTqQvE+FMdhzFjrhmmy/Liqb +d1DH8aM8v0ZIwVnYOisxX1mMnLJZ4BSkDgRfCvra+e6aqZVgBqxqyGYdFtK55sYFs/8 LlzjYYBz/lpVj545aXofy6348VmvcVjv3GmZNYuYLSFLDMAiOK1zanJRIkWjQMNMAhe5 PrQ4t1eZMxgew0mfF2hB9A885W3NrarbgME9CWnX2PhJvolq7Hd+ppdsEkaeQNg+YLlL 5vhw== X-Received: by 10.60.134.109 with SMTP id pj13mr26489045oeb.63.1402608542504; Thu, 12 Jun 2014 14:29:02 -0700 (PDT) Original-Received: by 10.76.166.234 with HTTP; Thu, 12 Jun 2014 14:28:42 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::235 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:98189 Archived-At: Hi all, Jai Dayal wrote: > So, again, how does Sublime Text do it? I did a web search for "send text to iTerm" and found a SublimeText extension called SendText[1]. I'm not sure if it's what the original asker is using, and I don't have my Mac handy to test it at the moment, but the bottom line is that it seems to be possible using a bit of simple AppleScript. [1] https://github.com/wch/SendText/blob/master/SendText.py Best, John