The Kindle supports Mobipocket files directly. You don't need to write a script to do that.
Non DRM Mobipocket format is already supported on the Kindle - just drag and drop.
Use Mobipocket software to convert PDFs to that format so you can read them on Kindle.
Devices like the Sony Reader, Cybook, and Kindle DO NOT have glowing LCD screens.
A revolutionary portable reader that wirelessly downloads books, newspapers, magazines and blogs to a crisp, high-resolution electronic paper display that looks and reads like real paper, even in bright sunlight.