One of the more difficult tasks of e-book creation for designers is the often necessary clean-up of the HTML and CSS files created from the page layout program. Using a script to access those files can speed things up considerably.
If you’re creating .mobi files for Kindle, the MobiUnpack script lets you drag and drop that file on it and extract the HTML, images, and metadata. It’s available in Python and AppleScript formats.
If you’re working with ePub on Mac OS X, Paul Durrant’s ePub Zip and ePub UnZip AppleScripts can open the contents of a zipped ePub file and can re-zip the files while keeping the integrity of the ePub file intact.
For .mobi files
For ePub files