Welcome, Guest
Python Scripts for ComicRack

TOPIC: Guided eComic file renaming - full GUI

Guided eComic file renaming - full GUI 9 years 9 months ago #807

  • wadegiles
  • wadegiles's Avatar
  • Offline
  • Gold Boarder
  • Posts: 248
  • Thank you received: 3
  • Karma: 20
This script allows for the most customized user specified file renaming of the several scripts I've already written. Install the script by extracting the attached file to your \ComicRack\Scripts folder and restarting ComicRack. Right click on the selected eComics to rename. Under the Automation menu item, click on the new item named Guided Rename.... From there the script displays a dialog in which to specify the pattern for renaming files.

Some details:
  • This script does not rename files using ComicRack's file renaming limitations. The only illegal characters are
    \ / : * ? " < > |
    This is enforced by the Windows file system itself. Replacement characters are used for some of the characters.
    " is changed to '
    : is changed to -
    < is changed [
    > is changed to ]
    | is changed to !
  • The following fields can be specified to use as part of the new filename: Series, Volume, Number, Count, Alternate Series, Alternate Number, Alternate Count, Year, Month, Publisher, Imprint, and Title.
  • If any fields are missing for a selected eComic, that comic won't be renamed using the missing field nor any of the prefix or postfix values specified for the field. This allows you to specify things like "( of <count> )" without have a bunch of files missing a count being renamed as "( of )".
  • Numeric fields that have numeric values can be left-padded with zeroes to ensure a minimum width.
  • If the rename cannot be completed, that comic will be skipped.
  • Remembers the last pattern used for renaming and loads it for subsequent renames. Just click Reset to start a new pattern.

That only covers a few features of the script. Tooltips are displayed when you hover the mouse over a control to help you out.

Updated 2011.02.20 11:18 PM EDT - Version 1.7

File Attachment:

File Name: GuidedRename1_7.zip
File Size:13 KB
Last Edit: 6 years 8 months ago by wadegiles. Reason: New version
The administrator has disabled public write access.
The following user(s) said Thank You: wolverine68

Re:Guided eComic file renaming - full GUI 9 years 9 months ago #808

  • mmalone27
  • mmalone27's Avatar
  • Offline
  • Senior Boarder
  • Posts: 48
  • Karma: 0
Wow. You just made me very happy. Thanks so much!
The administrator has disabled public write access.

Re:Guided eComic file renaming - full GUI 9 years 9 months ago #809

  • Ludwig
  • Ludwig's Avatar
  • Offline
  • Gold Boarder
  • Posts: 197
  • Thank you received: 12
  • Karma: 9
Seems nice because I used to do that via Sharkus script and you always have to open that Dos-screen to run Python.

But... Houston we have a problem.
This script doesn't seem to work for me.
Maybe because it's a monday ;o)
Well let's wait what the other users say.
I'll try it again on an free day.
Thanx anyway for the innovation and extras.
The administrator has disabled public write access.

Re:Guided eComic file renaming - full GUI 9 years 9 months ago #811

  • wadegiles
  • wadegiles's Avatar
  • Offline
  • Gold Boarder
  • Posts: 248
  • Thank you received: 3
  • Karma: 20
Yep, it doesn't work for me either. Let me run some tests and I'll post a new version.
The administrator has disabled public write access.

Re:Guided eComic file renaming - full GUI 9 years 9 months ago #812

  • wadegiles
  • wadegiles's Avatar
  • Offline
  • Gold Boarder
  • Posts: 248
  • Thank you received: 3
  • Karma: 20
New version 1.1 in first post. Please redownload and overwrite the old script.
Attachments:
Last Edit: 9 years 9 months ago by wadegiles.
The administrator has disabled public write access.

Re:Guided eComic file renaming - full GUI 9 years 9 months ago #813

  • Sopoforic
  • Sopoforic's Avatar
  • Offline
  • Junior Boarder
  • Posts: 25
  • Karma: 0
It's excellent, although there is one thing it lacks. Would it be possible to have it save the renaming pattern between uses? I've kept it in the clipboard, but it would be nice if it would just be there when I call the renamer.
The administrator has disabled public write access.

Re:Guided eComic file renaming - full GUI 9 years 8 months ago #814

  • wadegiles
  • wadegiles's Avatar
  • Offline
  • Gold Boarder
  • Posts: 248
  • Thank you received: 3
  • Karma: 20
As requested, the new version 1.2 saves the last pattern used to rename files and fills the template text box with it on subsequent runs. If you Cancel the rename operation, the current template won't be saved.

One thing to note is that it doesn't fill the prefix, postfix, and padding fields in the builder section. This means the template field won't be in synch with those fields but just click the Reset button to clear that up.

Check the first post for an updated version.
Attachments:
Last Edit: 9 years 8 months ago by wadegiles.
The administrator has disabled public write access.

I like it 9 years 8 months ago #816

  • Ludwig
  • Ludwig's Avatar
  • Offline
  • Gold Boarder
  • Posts: 197
  • Thank you received: 12
  • Karma: 9
Thanx works good with ZIP-files.
Curious about the next script :o)
Keep up the great work.
The administrator has disabled public write access.

Re:I like it 9 years 8 months ago #832

  • Sopoforic
  • Sopoforic's Avatar
  • Offline
  • Junior Boarder
  • Posts: 25
  • Karma: 0
Thanks for the update, but it doesn't seem to work as intended. Observe:

1. Select some files to rename and input a pattern (e.g. "<series0> ""V<volume0> ""<number0> ""(of <count0>) ""(<year0>-<month2>)")

2. Note that the rename works correctly.

3. Select the files again to rename and notice that the pattern that appears ("<series0> ""V<volume0> ""<number3> ""(of <count3>) ""(<year0>) ") is not the one previously used.

Also, the thing says that the operation successfully completed even when hitting cancel. Probably better to keep it quiet when doing that.
The administrator has disabled public write access.

Re:I like it 9 years 8 months ago #834

  • wadegiles
  • wadegiles's Avatar
  • Offline
  • Gold Boarder
  • Posts: 248
  • Thank you received: 3
  • Karma: 20
You are correct. I'll fix that and post a new version.

cYo, I wish we could turn off those crappy emoticons in the script forum!
Last Edit: 9 years 8 months ago by wadegiles.
The administrator has disabled public write access.
Time to create page: 0.216 seconds

Who's Online

We have 183 guests and 7 members online