View Single Post
Old 07-01-2011, 06:03 AM   #6
kacir
Wizard
kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.
 
kacir's Avatar
 
Posts: 3,463
Karma: 10684861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
Quote:
Originally Posted by pini View Post
(and even a 'rename.app' would have to be called manually!
Why?
Once you download extensions.cfg, you can add 'rename.app' as an app to "open" the .odt. "Opening" the .odt will just quietly make an .odt.epub copy of the file. You find yourself in the library again and this time you open the .epub file in desired application.

----- WARNING! Untested code ahead! -----
###rename.app might look like this:
#!/bin/sh
Infile="$1"
Outfile="$1.epub"
cp "$Infile" "$Outfile"
----- end of untested code -----
kacir is offline   Reply With Quote