View Single Post
Old 06-12-2011, 07:40 PM   #2
penguinaka
Quack! Quack!
penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.
 
penguinaka's Avatar
 
Posts: 92
Karma: 9176
Join Date: Apr 2011
Location: Florida
Device: kindle 3 & sony daily prs950sc
Here is a renaming script that I created especially for ebook collectors. Its for use pre-calibre import. I hope you enjoy it! It's shaved hundreds of hours off my time working with my collection pre-import to calibre. Cheers!

BookCase (v6.7) - The Ultimate eBook File Renamer on Crack
BookCase is a heavily modified TitleCase Plus VBscript that works as a button in Directory Opus (Directory Opus is a Windows Explorer Replacement... a trial version can be downloaded at http://www.gpsoft.com.au/ and the scripts to run in it that i created can be found at the end of the post). It is designed to do all your eBook file renaming in one button click. Everything that it can do is listed below and in the script all the options can be turned on or off so that you get the format that you desire. To give you an idea it can be run against 100,000 eBook files at once and will take approximately five minutes to complete. 1000 files and less its near instant.

VERSION UPDATE (v6.7) Change List:
1. (request #1) added a remove bracketed version # feature (fBracketMagic2=True). The way this operates is it changes all brackets to round brackets then if fbraket=true then series brackets are removed if fbracket=false then series brackets are changed to square and then all rounded brackets are removed. If you use this feature then fBracketMagic1 should = false (i already have it set up for you)

2. (request #2) Swap title names that have ",the" ",a" and ",an" and the end of the title. I actually like this request i have the same thing in my library through out my books that i have been fixing by hand

3. (request #3) Swap lastname, firstname. this function was already built in and turned on as an option

4. (request #4) added AUTORENAME to script (if the file name already exists it renames the file to the same name with a "(1) at the end.)

5. (request #5) Turned off (commented out) the italian, spanish, french & german lower case exceptions which was giving you the W e B lower case in initals with initials that had "a" or "e" and a few others.

6. (request #6) Add a add brackets to series option and sub series option.

7. (request #7) Add a Zero padding in single digit #'s in series option





BookCase Does the Following:


All these are set as options that can be turned on or off by changing the value to "True" or "False" in the options area of the code its clearly marked if you edit the button.

Just an example of what it can do:


What format do you prefer?

Just edit the bookcase button and set the options to your preference:

Included in the zip is BookCase as a .orp file and additionally as a button. Also Including in the Zip is some other eBook Renaming Buttons. They are 3 Buttons... 2 of the buttons have a drop down with multiple buttons inside them.

These Buttons and BookCase are on a Button Bar:


Multiple Buttons File Contains:
1st Button: Trim - trims multiple spaces, leading and trailing

2nd Button: Replaces (multi button drop down)

-1 Replaces underscores with a comma
-2 Replaces underscores with spaces
-3 Replace file name with folder name
-4 Replace by with a dash
-5 Append folder author name to beginning of file name + a dash separator
-6 Removes everything but authors name on folders
-7 Add series brackets
-8 Remove desired # of charters from beginning of file name
-9 Remove desired # of character from end of file name
-10 Add extension info in brackets to end of file name
-11 Dots to spaces except in numbers
-12 Separate pushed together initials
-13 Add dots to initials
-14 Zero pad single digit numbers in series
-15 Add "Series" to series that have just numbers and no series name.
-16 Strip series out of file name
-17 Remove a desired text
-18 Insert a desired text

3rd Button: Swaps (multi button drop down)

-1 Swaps lastname, firstnames of any type also multiples of them separated by & or and.
-2 Swaps everything in a title on either side of a comma.
-3 Swaps everything in a title on either side of a comma except brackets.
-4 Swaps library order to regular title order excludes sentences that are not library order
-5 Replace by with dash then do a author title swap
-6 Replace underscore with a comma and do a Ln, Fn swap.
-7 Swaps title series author (TSA) to (AST) and leaves bracketed info in place
-8 Swaps (TAS) to (AST) and leaves bracketed info in place
-9 Swaps (SAT) to (AST) and leaves bracketed info in place
-10 Swaps (STA) to (AST) and leaves bracketed info in place
-11 Swaps (ATS) to (AST) and leaves bracketed info in place


The Buttons are in Text files just copy from <?xml version="1.0"?> to </button> in the files and paste it onto your bar while your in customization mode. There is a read first in the rar file which will explain more in depth how to install them onto the bar on opus... If you need further help feel free to pm me.

Let me know what you think when you test drive them!


Code:
http://www.filesonic.com/file/1578621124
No Need to get an account with filesonic just use free/regular user download

Note on Typical Settings:

1. Keep all bracketed information regardless of what it is:
fBracketMagic1 & fBracketMagic 2 should be false

2. Remove all bracketed info accept version info and series if bracketed:
fBracketMagic1 = True and fBracketmMagic2 = False

3. Remove all Bracketed info but keep series info if bracketed:
fBracketMagic1 = False abd fBracketMagic2 = True

Last edited by penguinaka; 08-02-2011 at 06:27 PM.
penguinaka is offline   Reply With Quote