View Single Post
Old 04-07-2009, 07:49 PM   #21
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by shighfield View Post
Nick: That works great! I've only really tested the catagory part, but will beat this up for you as I'm converting a ton of books from LRF to HTML / IMP now.

Additions... What about a way to mass change a directory? ie: impmeta *.imp --cat "Fantasy" would set the whole shebang in the directory?

My end goal is to (under windows for now) click a button and be able to edit fields in IMP's from calibre, convert to IMP within calibre, etc.
That's easy, using windows for command, place this in a batch file and pass it parameters --cat "Fantasy" (or %1 %2) etc:
Code:
for %%i in (*.imp)  do impmeta "%%i" --cat "Fantasy"
If you execute this at the dos prompt without batch files, then use single % in place of the double %%.

Oh, and for recursively down into all subdirs, use:
Code:
for /r %%i in (*.imp)  do impmeta "%%i" --cat "Fantasy"
nrapallo is offline   Reply With Quote