Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 02-25-2014, 09:02 PM   #16
loximuthal
Connoisseur
loximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
loximuthal's Avatar
 
Posts: 67
Karma: 12960
Join Date: Jan 2011
Location: Maryland
Device: NST, Kindle Fire, iPad2
That almost did it for me. I had to tweak it slightly to work on my system, so now it looks like:
Code:
if ( "$1" != "" ) then
        while ( "$1" != "" )
                ebook-edit "$1"
                shift
        end
else
        ebook-edit
endif
This allows me to drop one or more books on the icon or launch it empty. I am a happy camper now

I tried the --detach option but it claims
Quote:
ebook-edit: error: no such option: --detach
which if fine by me. I almost never edit multiple books simultaneously, and if I do want to I can still drop books one at a time on the script I've got now.

Again, many thanks, both for pointing me in the right direction, and then showing me the path again when I wandered off.
loximuthal is offline   Reply With Quote
Old 02-25-2014, 09:10 PM   #17
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,400
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
--detach is linux only. On OS X you can use

ebook-edit "$1" > /dev/null 2>&1 &

(which does almost the same thing as --detach).
kovidgoyal is offline   Reply With Quote
Old 02-25-2014, 09:12 PM   #18
eschwartz
Irrational Optimist
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
Posts: 4,459
Karma: 5947290
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch (Wifi only)
Oh, it seems --detach is linux only. Glad to hear it works for you.

EDIT: Or what Kovid said. Why did I forget about "&", when I use it every day when starting stuff from the command line?

Ok, so you won't be able to close the parent terminal, not a big deal, its the same otherwise.

Last edited by eschwartz; 02-25-2014 at 09:15 PM.
eschwartz is offline   Reply With Quote
Old 02-26-2014, 03:29 PM   #19
loximuthal
Connoisseur
loximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
loximuthal's Avatar
 
Posts: 67
Karma: 12960
Join Date: Jan 2011
Location: Maryland
Device: NST, Kindle Fire, iPad2
OK, I finally got it to do it all (as it were): open empty, open one file dropped on it, open multiple files simultaneously when dropped on it and launch as the default program when I open an epub.

I added the "&" to get the multiple books, but took out the redirect output to /dev/null since it kept giving me funny errors. When I run it as an app the output does not show up anyway. Maybe Automator sends it to /dev/null?

Thank you both very much for the assistance.

If anybody else wants to do this on a Mac, here is what my Automator process looks like.
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2014-02-26 at 3.26.53 PM.png
Views:	62
Size:	28.2 KB
ID:	119626  
loximuthal is offline   Reply With Quote
Old 03-06-2014, 06:57 PM   #20
VydorScope
Wizard
VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.
 
VydorScope's Avatar
 
Posts: 3,359
Karma: 35123778
Join Date: Jun 2011
Device: Kindle Fire HD 7
Thanks Loximuthal! The only thing I had to was put the full path to the ebook-edit.

/Applications/calibre.app/Contents/MacOS/ebook-edit

Why does it work for you with that that?
VydorScope is offline   Reply With Quote
Old 03-06-2014, 07:02 PM   #21
eschwartz
Irrational Optimist
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
Posts: 4,459
Karma: 5947290
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch (Wifi only)
Quote:
Originally Posted by VydorScope View Post
Thanks Loximuthal! The only thing I had to was put the full path to the ebook-edit.

/Applications/calibre.app/Contents/MacOS/ebook-edit

Why does it work for you with that that?
From the manual: http://manual.calibre-ebook.com/cli/cli-index.html

Quote:
On OS X you have to go to Preferences->Advanced->Miscellaneous and click install command line tools to make the command line tools available. On other platforms, just start a terminal and type the command.
eschwartz is offline   Reply With Quote
Old 03-06-2014, 07:07 PM   #22
VydorScope
Wizard
VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.VydorScope ought to be getting tired of karma fortunes by now.
 
VydorScope's Avatar
 
Posts: 3,359
Karma: 35123778
Join Date: Jun 2011
Device: Kindle Fire HD 7
Quote:
Originally Posted by eschwartz View Post
Ah cool - for some reason I thought I did that already, but doing it just now fixed it. Thanks!
VydorScope is offline   Reply With Quote
Old 03-07-2014, 09:04 AM   #23
loximuthal
Connoisseur
loximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterloximuthal can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
loximuthal's Avatar
 
Posts: 67
Karma: 12960
Join Date: Jan 2011
Location: Maryland
Device: NST, Kindle Fire, iPad2
Quote:
Originally Posted by eschwartz View Post
Thanks for getting that. I would have had to think hard to remember that. It's been quite some time since I installed the command-line tools
loximuthal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
regex in calibre editor mrmikel Editor 2 02-01-2014 10:39 AM
Calibre Ebook Editor filmo Kobo Reader 0 01-13-2014 10:11 AM
Calibre Editor for former Sigil users theducks Editor 2 12-22-2013 12:55 PM
Q: Should we have new sub-Calibre forum for ePub Editor? phossler Editor 5 12-21-2013 12:41 PM
[REQ] Cover browser window to launch independently in full screen monkbythesea Calibre 10 08-18-2010 11:55 PM


All times are GMT -4. The time now is 07:22 PM.


MobileRead.com is a privately owned, operated and funded community.