I have been working to clean up some of my ebook files. Most are in the format:
Author - Title.ext
However, some are in the format:
Title - Author.ext
I'd like to create a quick rename script (that I can attach to a button on my toolbar) to swap the author and title portions of the filename. Any suggestions?
And to add a bit of complexity, sometimes the author is listed Firstname Lastname while other times it is Lastname, Firstname. Though I actually prefer the Lastname, Firstname schema, the vast majority of the books are Firstname Lastname. Thus, to be consistent, I usually make that change as well. Thus, a script (standalone would probably work better) that could take:
And Silly question #2: On the first rename dialog (to switch from Last, First - Title to First Last - Title), the RE adds a space before the Firstname in the renamed file. How do I edit the RE to eliminate this extra space?