View Single Post
Old 04-26-2008, 09:33 PM   #1
Nate the great
Sir Penguin of Edinburgh
Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.
 
Nate the great's Avatar
 
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
The Idiot's Guide to running Igorsk's Python Scripts

This is how I run Igorsk's Python scripts on Windows XP. And yes, this method can be applied to other scripts.

1. Download and install Python.
1a. Do not configure it. Do not set any variables. Do not set any path names.

2. Create a folder to work in, and copy the Python script you want to run to that folder. Then copy the ebooks you want to work on to that folder.

3. In the working folder, make a new text file. (At this point it gets a little complicated.) Assuming you want to run kindlefix.py script, each line of the text file needs to look something like this:

kindlefix.py file.mobi YourKindlesPID

3a. You need to have one line for each ebook. make sure that on each line the file.mobi is replaced by the filename of one of the ebooks. Also, do not put the same ebook on two different lines.

3b. On the last line of the file, add the word pause. It needs to be on a line by itself.

4. Rename the text file to something.BAT. The file is now a batch file. This is a remnant of MS-DOS, and basically each line of that file is one set of commands for the DOS command line.

5. Double-click on the file. A DOS window should open, and you should see it working. If it isn't working, please copy the error message here and attach a copy of your batch file.
Nate the great is offline   Reply With Quote