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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-24-2010, 01:48 PM   #16
MichaelGray
Member
MichaelGray began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Feb 2010
Device: None
Hi there
Hope somebody can help with this - I've been using ePub zip for a while and it's been a fantastic saviour, but suddenly it doesn't seem to work any more. When I try to zip my folder into epub I get an error message: "Can't make <<class ctnr>> of item 1 {alias "Macintosh HD:Users:Mini25esktop:nameofmyfolder:"} into type text." I can OK this or press an "Edit" button, which opens the Apple Script Editor (beyond me!)
Not sure what changed on my system or in my epub - it just seems to have changed from one day to the next. Any ideas?
Thanks very much
Michael
MichaelGray is offline   Reply With Quote
Old 09-24-2010, 02:30 PM   #17
pdurrant
The Grand Mouse
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 32,863
Karma: 89897838
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
Quote:
Originally Posted by MichaelGray View Post
Hi there
Hope somebody can help with this - I've been using ePub zip for a while and it's been a fantastic saviour, but suddenly it doesn't seem to work any more. When I try to zip my folder into epub I get an error message: "Can't make <<class ctnr>> of item 1 {alias "Macintosh HD:Users:Mini25esktop:nameofmyfolder:"} into type text." I can OK this or press an "Edit" button, which opens the Apple Script Editor (beyond me!)
Not sure what changed on my system or in my epub - it just seems to have changed from one day to the next. Any ideas?
Thanks very much
Michael
Hmm... Well, it's obviously a bug, but exactly what's causing it is a mystery to me at the moment.. It might be that I'm not escaping a path when I should. Try putting the epub folder onto the top level of your hard disk and trying from there. If that works, then it must be something in the path, but I can't see what. When I get a moment I'll see if I can spot anything 'obvious' in the script.
pdurrant is online now   Reply With Quote
Old 10-25-2010, 06:50 PM   #18
danrodney
All Around Nice Guy
danrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of it
 
Posts: 21
Karma: 66666
Join Date: Oct 2010
Location: New York City
Device: iPad, iPhone, Kindle Keyboard, Kindle Fire, Nook 1st Gen, Nook Color
I made an UnZip and updated the Zip version to 1.0.3

First I wanted to thank pdurrant so much for writing the EPUB Zip script!

However I disagree that unzipping is so easy. I've had some EPUBs that do not properly unzip with the Finder's native unzipper (and renaming your files is a pain if you need to do it a lot). Using pdurrant's code as a reference, I went ahead and made an UnZip app that uses the terminal command which I find more reliable.

While I was at it I updated the EPUB Zip 1.0.2.app to remove the confirmation dialog at the end (to speed things up) and make the dialog messages more consistent with the UnZipper I created.

Here's the new version for all to enjoy. It contains:
EPUB UnZip 1.0.app
EPUB Zip 1.0.3.app


Thanks again for your contribution.
Dan
Attached Files
File Type: zip EPUB-Zip-and-UnZip.zip (63.9 KB, 6079 views)
danrodney is offline   Reply With Quote
Old 10-26-2010, 03:49 PM   #19
danrodney
All Around Nice Guy
danrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of it
 
Posts: 21
Karma: 66666
Join Date: Oct 2010
Location: New York City
Device: iPad, iPhone, Kindle Keyboard, Kindle Fire, Nook 1st Gen, Nook Color
Minor Update

When updating the scripts I changed the name from ePub to EPUB because it seemed like the ePub developers wanted it that way.

But I have since changed my mind and went back to ePub because I see more people using it and honestly I like it better. Even the official ePub logo uses a lowercase "e" so they can't even decide which way to go! So no real changes other than the name change, but I still wanted to post it anyway.
Attached Files
File Type: zip ePubUnZip1.0-ePubZip1.0.3.zip (64.2 KB, 4850 views)
danrodney is offline   Reply With Quote
Old 10-26-2010, 07:56 PM   #20
wannabee
Media Bloke
wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.
 
Posts: 2,377
Karma: 113956855
Join Date: Oct 2010
Location: NSW - Australia
Device: iOS
I've been zipping and unzipping on windows 7 at work with just a right click and assumed that if I had to do it at home on my mac it would be the same. Glad I came across this post and thanks for the script. I'm sending it home straight away.
wannabee is offline   Reply With Quote
Old 12-02-2010, 08:59 PM   #21
a-name4epub
Junior Member
a-name4epub began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2010
Device: none
Thanks for this, pd. It works, but I am getting errors of a different kind, so will be searching...
a-name4epub is offline   Reply With Quote
Old 12-03-2010, 09:57 AM   #22
wannabee
Media Bloke
wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.
 
Posts: 2,377
Karma: 113956855
Join Date: Oct 2010
Location: NSW - Australia
Device: iOS
Spent the day finalising a book. (I hope) must have unzipped, edited and rezipped 30 times. Used 3 press and flightcrew every time to validate with no errors.

No scripts, just right click "extract all" and right click "send to zip file"
wannabee is offline   Reply With Quote
Old 12-03-2010, 10:33 AM   #23
pdurrant
The Grand Mouse
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 32,863
Karma: 89897838
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
Quote:
Originally Posted by wannabee View Post
Spent the day finalising a book. (I hope) must have unzipped, edited and rezipped 30 times. Used 3 press and flightcrew every time to validate with no errors.

No scripts, just right click "extract all" and right click "send to zip file"
If you're lucky, that might work. It would require the zip to have zipped the mimetype file first, and to not apply any compression to it. I'd advice checking with epubcheck as well, which I know checks that the mimetype file has been done correctly.
pdurrant is online now   Reply With Quote
Old 12-04-2010, 06:38 AM   #24
wannabee
Media Bloke
wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.
 
Posts: 2,377
Karma: 113956855
Join Date: Oct 2010
Location: NSW - Australia
Device: iOS
validating

Quote:
Originally Posted by pdurrant View Post
I'd advice checking with epubcheck as well, which I know checks that the mimetype file has been done correctly.
Thanks for your response. I appreciate it very much.

Now seriously, I was trying to get some tables formatted the way I like and and validated many versions yesterday. All with epubcheck and flightcrew.

As soon as I have a few moments I''ll take that file and modify it for copyright, validate it and post it because I am confused about all this need to use scripts to zip it up.

I have never used a script. I'm using Windows 7 and just using the extract all files option and send to zip from right click then just change the file type. I have four books that validate and could not count how many times I validated them.

Signed - confused
wannabee is offline   Reply With Quote
Old 12-04-2010, 06:43 AM   #25
pdurrant
The Grand Mouse
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 32,863
Karma: 89897838
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
Quote:
Originally Posted by wannabee View Post
I have never used a script. I'm using Windows 7 and just using the extract all files option and send to zip from right click then just change the file type. I have four books that validate and could not count how many times I validated them.
How interesting. It might be that Windows 7 is clever enough to notice that it's an ePub being zipped, but I think it more likely that the way you have named the files and the folders in your ePub source just happen to give the right result.

So long as it works for you. It certainly doesn't work on Mac OS X if you just use the built-in right-click/Compress (which creates a zip file).
pdurrant is online now   Reply With Quote
Old 12-04-2010, 07:02 AM   #26
wannabee
Media Bloke
wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.wannabee ought to be getting tired of karma fortunes by now.
 
Posts: 2,377
Karma: 113956855
Join Date: Oct 2010
Location: NSW - Australia
Device: iOS
I guess you're right. I'll see what the mac does tomorrow when I get some time.
wannabee is offline   Reply With Quote
Old 12-26-2010, 04:50 AM   #27
Juris
Junior Member
Juris began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2010
Device: ipad,iphone
Hello,
I hope this is the proper forum for the questions I have.

I bought and downloaded an epub book with Adobe DRM. I wanted to read it on my iPad and used ineptepub to strip the drm. It only returned the first 18 pages of the book, the rest were blank.

i used several versions of ineptkey and ineptepub and got the same result.
I then made a copy and using your scripts unzipped and then rezipped the book.

When I went to remove the drm, I got an error message saying this was not an Adept file. When i opened the book in ADE, it only showed the first 18 pages, the same as when I initially used ineptepub. So something is obviously happening in the unzip and rezip process.
Could this be a new block against removing DRM, or am I doing or not doing something.
Thanks
Juris is offline   Reply With Quote
Old 12-26-2010, 08:24 AM   #28
pdurrant
The Grand Mouse
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 32,863
Karma: 89897838
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
There are certainly some problems with the zip structure of some epub books.

That simply unzipping and rezipping causes a problem in ADE does suggest that there's some problem in this book's zip structure that might also be causing problems in the dedrm process.

Quote:
Originally Posted by Juris View Post
Hello,
I hope this is the proper forum for the questions I have.

I bought and downloaded an epub book with Adobe DRM. I wanted to read it on my iPad and used ineptepub to strip the drm. It only returned the first 18 pages of the book, the rest were blank.

i used several versions of ineptkey and ineptepub and got the same result.
I then made a copy and using your scripts unzipped and then rezipped the book.

When I went to remove the drm, I got an error message saying this was not an Adept file. When i opened the book in ADE, it only showed the first 18 pages, the same as when I initially used ineptepub. So something is obviously happening in the unzip and rezip process.
Could this be a new block against removing DRM, or am I doing or not doing something.
Thanks
pdurrant is online now   Reply With Quote
Old 12-26-2010, 12:07 PM   #29
James_Wilde
Guru
James_Wilde ought to be getting tired of karma fortunes by now.James_Wilde ought to be getting tired of karma fortunes by now.James_Wilde ought to be getting tired of karma fortunes by now.James_Wilde ought to be getting tired of karma fortunes by now.James_Wilde ought to be getting tired of karma fortunes by now.James_Wilde ought to be getting tired of karma fortunes by now.James_Wilde ought to be getting tired of karma fortunes by now.James_Wilde ought to be getting tired of karma fortunes by now.James_Wilde ought to be getting tired of karma fortunes by now.James_Wilde ought to be getting tired of karma fortunes by now.James_Wilde ought to be getting tired of karma fortunes by now.
 
James_Wilde's Avatar
 
Posts: 793
Karma: 4727110
Join Date: Aug 2010
Location: Sweden
Device: Iriver Story
You're the man, Paul. Thanks.
James_Wilde is offline   Reply With Quote
Old 12-26-2010, 12:32 PM   #30
pdurrant
The Grand Mouse
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 32,863
Karma: 89897838
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
Quote:
Originally Posted by pdurrant View Post
There are certainly some problems with the zip structure of some epub books.

That simply unzipping and rezipping causes a problem in ADE does suggest that there's some problem in this book's zip structure that might also be causing problems in the dedrm process.
It turns out that this is a known problem to do with non-ascii characters in file names, and is a bug in the ineptepub script. I think a fix should be out soonish.

Meanwhile, it is possible to work around the problem by unzipping the epub in question, and changing the file names and the references to the files in the opf file and the encryption.xml file
pdurrant is online now   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
Applescript Wrapper Application for Kindlegen pdurrant Kindle Formats 20 07-09-2014 06:29 PM
How to unzip a Calibre ZIP file on a Mac? webfolk Calibre 15 06-03-2012 07:01 PM
Useful Applescript for Mac OS X users pdurrant Kindle Formats 11 07-23-2011 06:00 AM
Mobiperl mobi2html changesetR84.zip won't unzip cyberbaffled Kindle Formats 0 06-15-2010 11:25 PM
Mac OS X lit2rtf AppleScript thingy FourOhFour Sony Reader 11 08-11-2007 01:02 AM


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


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