![]() |
#61 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,580
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
The ePub Zip AppleScript application is now the ePub Zip/Unzip AppleScript application!
A shiny new version of the application is available in the first post of this thread. Bug reports, feedback, additional translations are all welcome. |
![]() |
![]() |
![]() |
#62 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 70
Karma: 515184
Join Date: Sep 2011
Location: Brasília
Device: Kindle3, iPad, Nook, Kobo, Positivo Alfa
|
Thanks for this!
|
![]() |
![]() |
Advert | |
|
![]() |
#63 |
Enthusiast
![]() ![]() Posts: 27
Karma: 110
Join Date: Dec 2010
Location: Chicago, IL
Device: iPad, Kindle
|
Paul, this is fantastic. Thank you! And thanks for updating the first post too.
![]() AM |
![]() |
![]() |
![]() |
#64 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 51
Karma: 29994
Join Date: Nov 2011
Location: Manila, Philippines
Device: iPad 2 & Nexus 7
|
thanks!
|
![]() |
![]() |
![]() |
#65 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,580
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Just uploaded version 2.0.1 with German translation by shorshe added.
|
![]() |
![]() |
Advert | |
|
![]() |
#66 |
All Around Nice Guy
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21
Karma: 66666
Join Date: Oct 2010
Location: New York City
Device: iPad, iPhone, Kindle Keyboard, Kindle Fire, Nook 1st Gen, Nook Color
|
Feature Request
You know how iTunes adds an iTunesMetadata.plist in the root directory of the ePub file when dragging an ePub onto iTunes? Sometimes I unzip an ePub to find that nasty file (which invalidates your ePub).
If this Zip-Unzip script excludes .DS_Store files, how about it also exclude the iTunesMetadata.plist file? That way if it ever exists, you know it will be removed when rezipping. Could be nice, right? |
![]() |
![]() |
![]() |
#67 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,580
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
However, you could do quite easily for your copy. Open the script with AppleScript Editor, find the line containing -x mimetype change that bit to -x mimetype -x iTunesMetadata.plist and save. (Make sure you don't delete the " either side, or the space before the first -x) |
|
![]() |
![]() |
![]() |
#68 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,580
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Just uploaded version 2.1. Now, when unzipping an ePub, the script first makes sure that there aren't any problems with the zip structure of the ePub.
|
![]() |
![]() |
![]() |
#69 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,580
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Just uploaded version 2.1.1. Now with a Portugese translation by PageLab.
More translations (or improvements to existing translations) are most welcome. |
![]() |
![]() |
![]() |
#70 | |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Apr 2012
Device: iPhone 4
|
Thanks for this, I've been using it successfully for over a year now.
I just ran into an issue, and I'm not sure if there's anything ePub Zip can do about it. When I was submitting my epub file to Smashwords Direct, I received this error: Quote:
The epub has a mimetype file which has the "application/epub+zip" line in it, but Smashwords doesn't acknowledge this. Has anyone seen this and figured out a solution? Or does anyone have any ideas? |
|
![]() |
![]() |
![]() |
#71 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,542
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Is that "mimetype" file the first in the archive and is it uncompressed?
|
![]() |
![]() |
![]() |
#72 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Apr 2012
Device: iPhone 4
|
The mimetype file is uncompressed as far as I can tell. It's in the root directory next to the "META-INF" and "OEBPS" directories.
|
![]() |
![]() |
![]() |
#73 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,580
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
In short: Are you sure the bit of Smashwords you uploaded to will accept an ePub? |
|
![]() |
![]() |
![]() |
#74 | |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Apr 2012
Device: iPhone 4
|
Quote:
Smashwords does now accept epubs as seen here: https://www.smashwords.com/swdirect The caveat being that they won't then reformat your file to all the other ones they usually do. So far it's not a banner experience. They same epub that validates and works on every other service is rejected. Like I said originally, I highly doubt this is the fault of ePub Zip, but I was hoping you or someone might know of a way to circumvent this error. I've been trying to find a way to manually adjust the mime type of the file, but no dice so far... |
|
![]() |
![]() |
![]() |
#75 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
In windows open a cmd window and cd to wherever your ePub file is. on the command line enter: type <filename> where filename is the name of your ePub file. Does it look like: PK♥♦ yYª8íÅr╠▬ ▬ mimetypeapplication/epub+zip PK♥♦ Ignore the leading garbage characters on the second line. The second PK may appear just after the mimetype info instead of on a different line. Ignore anything after the second PK. If it does not then the ePub is not built correctly. Dale Last edited by DaleDe; 07-17-2013 at 09:53 PM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Applescript Wrapper Application for Kindlegen | pdurrant | Kindle Formats | 50 | 02-18-2020 01:16 AM |
How to unzip a Calibre ZIP file on a Mac? | webfolk | Calibre | 15 | 06-03-2012 06:01 PM |
Useful Applescript for Mac OS X users | pdurrant | Kindle Formats | 11 | 07-23-2011 05:00 AM |
Mobiperl mobi2html changesetR84.zip won't unzip | cyberbaffled | Kindle Formats | 0 | 06-15-2010 10:25 PM |
Mac OS X lit2rtf AppleScript thingy | FourOhFour | Sony Reader | 11 | 08-11-2007 12:02 AM |