From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Erik Iverson Newsgroups: gmane.emacs.help Subject: Re: Emacs, Org Mode, and Exporting to The Command Line Troubles Date: Fri, 01 Oct 2010 12:25:54 -0500 Message-ID: <4CA619A2.3020809@ccbr.umn.edu> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1285954057 8233 80.91.229.12 (1 Oct 2010 17:27:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Oct 2010 17:27:37 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Colin Grey Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 01 19:27:35 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P1jOR-0002NJ-Kx for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Oct 2010 19:27:35 +0200 Original-Received: from localhost ([127.0.0.1]:60928 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1jOQ-0005K9-VM for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Oct 2010 13:27:35 -0400 Original-Received: from [140.186.70.92] (port=59080 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1jMu-0004vb-T2 for help-gnu-emacs@gnu.org; Fri, 01 Oct 2010 13:26:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P1jMt-0007Ri-Kt for help-gnu-emacs@gnu.org; Fri, 01 Oct 2010 13:26:00 -0400 Original-Received: from walleye.ccbr.umn.edu ([128.101.116.11]:4682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P1jMt-0007RL-Et for help-gnu-emacs@gnu.org; Fri, 01 Oct 2010 13:25:59 -0400 Original-Received: from tadpole.ccbr.umn.edu (tadpole.ccbr.umn.edu [128.101.116.26]) by walleye.ccbr.umn.edu (8.9.3p2/8.9.3) with ESMTP id MAA16912; Fri, 1 Oct 2010 12:25:57 -0500 (CDT) Original-Received: from iron.ccbr.umn.edu (iron.ccbr.umn.edu [128.101.116.194]) by tadpole.ccbr.umn.edu (8.9.3/8.9.3) with ESMTP id MAA07602; Fri, 1 Oct 2010 12:25:55 -0500 (CDT) User-Agent: Thunderbird 2.0.0.23 (X11/20090812) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: NMAP syn scan (4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75060 Archived-At: Colin, If you don't receive an answer here, you might want to follow-up on the emacs-orgmode mailing list. You may have to load orgmode in your progn before using its functions? --Erik Colin Grey wrote: > Hello, > > I'm trying to write a shell script that will automatically change a > bunch of my org-mode files into HTML files. But am running into some > problems. The structure, as best I understand it, should like something > like this: > > emacs -batch -eval '(progn (find-file "test.org.txt") > (org-export-as-html "test.html"))' > > However, when I run that, it gives the output: > > Loading 00fink-vars... > Exporting... > Exporting... > Exporting... > Wrong type argument: stringp, nil > > > Oddly, I've noticed that if I don't use my custom extension (.org.txt) > but just use .org like so: > > emacs -batch -eval '(progn (find-file "test.org ") > (org-export-as-html "test.html"))' > > It will run, but will always spit out a blank HTML file, no matter the > contents of test.org > > Thank you in advance for any help, > > Colin Grey > > www.CGPGrey.com > www.ProductivePorcupine.com >