09-04-2009, 10:59 AM | #1 |
The Grand Mouse 高貴的老鼠
Posts: 72,511
Karma: 309063598
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
epubcheck for Mac OS X
There's this great epubcheck tool over at http://code.google.com/p/epubcheck/
but it comes as a java application or for a web server. I wanted a drag&drop application for Mac OS X. So I wrapped the java app in an AppleScript. Here it is. Just drag & drop ePub files onto the AppleScript, and the script will run epubcheck and report back on errors. If there are no errors, you'll also get a small dialog saying so. I beleive it will work on Mac OS X 10.4 and later. Feedback welcome. [EDIT] Updated to use epubcheck 1.0.5 [EDIT] Updated to make the error dialog a bit wider, and to save an error report when there are errors. The error report will be in the same folder as the ePub and with the same name, but with '.txt' appended. [EDIT] Updated to use epubcheck 1.1. I've left the 1.05 version here in case anyone still needs it. [EDIT] Updated to use epubcheck 1.2. I've left the previous versions, even though I can't think why anyone would want to use them. [EDIT] Updated to use epubcheck 3.0b5. Now has a pretty icon and also a translation into French. Thanks to Diegnum for the French translation. Any error in the French will be mine, as I adapted their text slightly. Please do report any errors in the dialogs. Further translations will be added if there is demand, and someone supplies me with the translated text! [EDIT] Updated to use epubcheck 3.0RC1. [EDIT] Updated to use epubcheck 3.0. [EDIT] Updated to use epubcheck 3.0.1. Now a working version of 3.0.1! Last edited by pdurrant; 06-04-2013 at 03:22 PM. Reason: New version |
09-04-2009, 12:08 PM | #2 |
Exwyzeeologist
Posts: 535
Karma: 3261
Join Date: Jun 2009
Device: :PRS-505::iPod touch:
|
Thanks! I was usually already in Terminal.app after zipping up a file, so typing in another command to fire up epubcheck wasn't a problem. But this just makes everything that much easier! And it seems to work fine on 10.4.11.
|
Advert | |
|
09-04-2009, 06:01 PM | #3 |
The Grand Mouse 高貴的老鼠
Posts: 72,511
Karma: 309063598
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
What is the magic incantation required in terminal to zip up a folder of files into the correct zip format?
None of my GUI zip utilities will do it right. Perhaps I could make an AppleScript that you could just a folder on and it would do the zipping. I much prefer small drag&drop apps to remembering and typing terminal commands. |
09-04-2009, 06:42 PM | #4 |
Exwyzeeologist
Posts: 535
Karma: 3261
Join Date: Jun 2009
Device: :PRS-505::iPod touch:
|
I've been thinking about simplifying this in some way, but if you want to make a drag'n'drop script it'll be that much easier on me.
The terminal commands to do it are: Code:
zip -X0 bookname.epub mimetype zip -rX9 bookname.epub * -x mimetype It's not a bad idea to precede the whole thing with this command to clear out the .DS_Store files first: Code:
find . -name '*.DS_Store' -type f -delete |
09-05-2009, 05:55 AM | #5 |
frumious Bandersnatch
Posts: 7,536
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I add the "-D" option too (do not create entries in the zip archive for directories), and remove the .epub file before zipping.
|
Advert | |
|
09-05-2009, 02:12 PM | #6 |
The Grand Mouse 高貴的老鼠
Posts: 72,511
Karma: 309063598
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
|
05-28-2010, 04:32 AM | #7 |
The Grand Mouse 高貴的老鼠
Posts: 72,511
Karma: 309063598
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Now updated to use epubcheck 1.0.5
|
05-28-2010, 06:06 PM | #8 |
.
Posts: 3,408
Karma: 5647231
Join Date: Oct 2008
Device: never enough
|
Will definitely try this out this weekend, thanks!
|
06-12-2010, 11:29 AM | #9 |
Junior Member
Posts: 1
Karma: 10
Join Date: Jun 2010
Location: AZ
Device: none
|
This seems to be what I am looking for. I appreciate the knowledge and the technical expertise that you all have acquired, but I am 'geek speak' illiterate. I have no idea what AppleScript is. Simply stated...I need to run a file through EpubCheck 1.0.5...I have a brand new iMac. When I click on your linc, pdurrant - it downloads but then it is just a file in a list of downloads. Anyone game enough to walk this infant through the rest of the process? Sorry to be so needy.
|
06-12-2010, 03:25 PM | #10 | |
The Grand Mouse 高貴的老鼠
Posts: 72,511
Karma: 309063598
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Quote:
Drag & Drop your ePub onto the application, and it will check it, and display the results in a dialog. HTH *The application is written in AppleScript. This is a neat way to get other programs to do things, and ties it up nicely into a simple application. In your Applications folder you probably have an AppleScript folder, inside which is the Script Editor application. You can use this to look at the script used in the epubcheck applescript program if you like. But there's no need unless you're interested. |
|
08-17-2010, 09:37 PM | #11 |
Junior Member
Posts: 1
Karma: 10
Join Date: Aug 2010
Device: Kindle
|
"ePubChecker" is a free easy-to-use program that runs your EPUB file through "epubcheck". Just drag and drop your book file, and click "Check".
Faster than uploading to a web site and more private as you keep your book on your own computer. Runs on Mac OS X 10.4, 10.5, and 10.6. See the screenshot: http://www.rainwater-soft.com/epubchecker/ This app is built by my company, but uses the "epubcheck" v1.0.5 checking engine from Google/Adobe as required by Apple when submitting an iBook. --Basil Bourque Last edited by Basil Bourque; 08-17-2010 at 09:40 PM. |
08-18-2010, 01:21 AM | #12 | |
regrets buying PocketBook
Posts: 44
Karma: 2144500
Join Date: Dec 2009
Location: Texas
Device: CoolReader (Android), Pocketbook 360 Ivory
|
zipping on mac
Quote:
Code:
zip -X MyNewEbook.epub mimetype zip -rg MyNewEbook.epub META-INF -x \*.DS_Store zip -rg MyNewEbook.epub OEBPS -x \*.DS_Store |
|
08-18-2010, 03:11 AM | #13 | |
The Grand Mouse 高貴的老鼠
Posts: 72,511
Karma: 309063598
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Quote:
|
|
08-18-2010, 03:12 AM | #14 | |
The Grand Mouse 高貴的老鼠
Posts: 72,511
Karma: 309063598
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Quote:
|
|
08-18-2010, 03:44 AM | #15 |
Addict
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
epub date error fails epubcheck 1.05 | dkata | Calibre | 2 | 09-13-2010 05:21 AM |
epubcheck bugs? | capidamonte | ePub | 2 | 06-13-2010 08:38 AM |
Web-based epubcheck upgraded to epubcheck 1.0.5 | kjk | ePub | 4 | 02-09-2010 10:53 PM |
epubcheck | GeoffC | ePub | 3 | 11-03-2009 05:26 AM |
Adobe EpubCheck to validate Epub documents | Alexander Turcic | News | 11 | 12-29-2007 09:07 PM |