Make MIMETYPE file the first file in an EPUB ZIP file?
My goal is to create an EPUB file via an AppleScript, and I'm starting with semi-manually generating an EPUB file. My issue is that the IDPF EPUB validator reports that my MIMETYPE file isn't isn't the first file in my EPUB package or that my MIMETYPE doesn't exist. My AppleScript is creating the EPUB folder structure and a MIMETYPE file: set EPUBMIMETYPEfilepath to ((EPUBfolderPath & ":MIMETYPE") as string) set referenceToEPUBMIMETYPEfile to a reference to file EPUBMIMETYPEfilepath open for access referenceToEPUBMIMETYPEfile with write permission write "application/epub+zip" to