Quantcast
Channel: MobileRead Forums - Kindle Formats
Viewing all articles
Browse latest Browse all 862

Kindle/Mobi File Naming AppleScript/Python Script

$
0
0
When first downloaded, Mobipocket and Amazon Kindle files often have weird names based on ISBN, ASIN or some truncated version of the book's name.

So, I have written a python script that extracts the name from the Mobipocket/Kindle file, and makes a duplicate of the file using the extracted name.

I also have a Drag&Drop AppleScript to make it easy to use for Mac users.

The script handles unicode and high ascii characters correctly and also tries to make sure that the files created don't have any illegal characters in their names. The script makes sure that a file doesn't exist with the same name, and will append numbers to the file name as needed to avoid over-writing files.

The AppleScript generates a log on the desktop of original names and new file names.

1.0 is attached. Please report any problems. If you're on Mac, the AppleScript is all you need (the python script is embedded). If not on a Mac, the python script is the only bit you can use.

Attached Files
File Type: zip KindleNamer 1.0.app.zip (34.3 KB)
File Type: zip kindlenamer.py.zip (3.3 KB)

Viewing all articles
Browse latest Browse all 862

Trending Articles