From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: running a command that requires two parameters on a file Date: Wed, 06 Aug 2014 11:20:37 -0400 Organization: A noiseless patient Spider Message-ID: References: <87fvh98xi3.fsf@bach.histomat.net> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1407338725 3289 80.91.229.3 (6 Aug 2014 15:25:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Aug 2014 15:25:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 06 17:25:18 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 1XF35a-0004z3-5n for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Aug 2014 17:25:18 +0200 Original-Received: from localhost ([::1]:39600 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XF35Z-0003RB-IH for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Aug 2014 11:25:17 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!news.stack.nl!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!barmar.motzarella.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Injection-Info: barmar.motzarella.org; posting-host="2be9e9f5dd9af768b8861af71b85fc28"; logging-data="9736"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19NlVm0CCMPv6yVAqKcBsJz" User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Cancel-Lock: sha1:3g4EYLnkxlOCaEGY3GAJEjIwBMw= Original-Xref: usenet.stanford.edu gnu.emacs.help:206824 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:99100 Archived-At: In article <87fvh98xi3.fsf@bach.histomat.net>, Haines Brown wrote: > I am in the habit of bringing up ! in order to run a command such as > xpdf on a selected file. I assume you're talking about Dired. > > The problem comes when I want to run the command wkhtmltopdf, for it > calls for two parameters. That is, emacs won't let me do: ! wkhtmltopdf > input.html output.pdf. > > Is there a way I can do this withou raising a terminal to make the > conversion with it? > > Haines Brown Write a script that takes one argument and fills in the other argument. Then run: ! scriptname -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***