nautilus-renamer

Nautilus Scripts

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

13
7.9
Description:

nautilus-renamer is a python script for batch renaming files in nautilus, with a simple yet intuitive gtk+ interface and lots of options and features.

WHAT'S NEW IN 3.0
* change pattern names to be more consistent
* added /roman/, /alphabet/ patterns (aaa, aab ... I, II, III...)
* patterns can handle now multiple /number/, /random/ ... patterns
* Fix some bugs and added testing

INSTALL
If you want to install it as a nautilus script, download source package and run "make localinstall" from terminal.
If you want to use it as a nautilus extension ("Mass Rename" will appear in context menu), download deb package. (Note: it will appear only if you have selected more than 2 files.)

Install python-roman, if you want to use /roman/ pattern.

TRANSLATIONS
The project is now on launchpad. You can translate it easily using launchpad.
https://translations.launchpad.net/nautilus-renamer
Last changelog:

8 years ago

3.1 (7 Jul 2012)
-----------------
* fix patternize option bugs,
- change patterns
- make multiple /num,***/ patterns work
- make multiple /rand,/ patterns work
- zero fill /rand,/ patterns
* added /alphabet/, /ALPHABET/, /roman/ patterns
* Insert patterns at cursor position instead of appending at the end
* update Notifications to use gir Notify
* added unit tests
* make nautilus extension translatable

3.0 (10 Jan 2012)
-----------------
* Ported to GObject Introspection/Gtk3
* Revamp ui, so that patterns, substitution and Case can be applied simultaneously
* Fixed bug #769829
* Cleanup Code
* Remove globalinstall option
* Added debian package

2.3 (23 Oct 2010)
----------------
* Enhance substitute (support regular expressions, multiple substitutions)
* Fix patternize (before, some patterns cannot be used more than once)
* Added filename slicing pattern /filename:offset:length/
* Use dialogs for errors, instead of notifications
* Don't exists if the error is recoverable
* Get rid of custom icons (use only gtk stocks)
* Add system-wide installation
* More Translations (Thanks to all contributors

2.2 (17 Sep 2010)
-----------------
* Fixed bug #641191
* Report errors on preview

2.1 (17 Sep 2010)
-----------------
* Check for any existed file before renaming, abort if there is
* Added random number pattern
* Fixed a bug with patterize preview
* Fixed preview columns
* Fixed /dir/ patterns
* update german translations
* Added French, Finnish translations

2.0 (28 Jul 2010)
----------------
* Added preview
* Added Tooltips
* Code cleanup

1.4 (4 Jun 2010)
----------------
* Added German Translation by Jan-Christoph Borchardt

1.3 (30 Mar 2010)
----------------
* Remember recent patterns
* Return on pattern entry actives rename
* Improved Capitalize After option

1.2 (9 Mar 2010)
---------------
* Added Capitalize After option

1.1 (6 Mar 2010)
----------------
* Added Extension option
* Fixed translation bug

1.0 (12 Dec 2009)
-----------------
* rewrite GUI using pyGTK
* translation support using gettext
* simpler and more compact code

0.7
---
* Added notifications
* fix zenity windows widths and heights
* added installer script

0.6
----
* Added more functions
* Simplifies code

0.5
----
* Added Batch Renaming

0.4
----
* Make the log file hidden by default

0.3
----
* Added " Undo Last Operation "

0.2
----
* GUI Added ...
* Fix some bugs ...
* Planning to add more functions

Arathon89

11 years ago

can you make an option in the renamer to not overwrite files that have the same name, but to notify you in that case and let you decide ifyou overwrite or not...i this this option is very usefull..because you won't lose some important file after the renaming (this had happened to me today...sigh!!)...thank for the good program..

Report

C

Thura

11 years ago

Ok, I will try to hack it this weekend ;)

Report

Arathon89

11 years ago

hi now i have another problem...the patternize option {num...} doesn't work with any tipe of file or directory...and i don't know why?? could you fix it, please...

Report

C

Thura

11 years ago

Thanks for reporting, it is fixed now ...

Report

Arathon89

11 years ago

ok now works....but to use this pattern you must specify the extension of the file, otherwise it doesn't change the name of the file...in fact it works if you combine the patterns {num...} and {ext}..in this way it works perfectly....

Report

C

Thura

11 years ago

Um, as far as I tested, {num .. } pattern works alone, without {ext}.
Of course, if you also want the extension, you will need to put {ext}.

Report

Arathon89

11 years ago

mmm...strange, for me {num} alone doesn't work... it works only if i add the extension

Report

C

Thura

11 years ago

I have tested several times with {num ..} alone, and it is working fine. Can you tell me the exact pattern you used?

Report

Arathon89

11 years ago

now the pattern works...bah yesterday it doesn't want to works and now...sorry for this annoyance...

Report

9

Brutus180

11 years ago

Thanks for this! You've made my life much easier. Keep up the good work!

Report

Arathon89

11 years ago

hi, thank for the renamer, it's a very good application...but i have a problem with the latest version, it doesn't start, i have ubuntu 9.10 and i installed all the dependencies. i tried to excute it by the terminal and i got this error:

Traceback (most recent call last):
File "./Renamer", line 514, in <module>
lang = gettext.translation (APP, DIR)
File "/usr/lib/python2.6/gettext.py", line 484, in translation
raise IOError(ENOENT, 'No translation file found for domain', domain)
IOError: [Errno 2] No translation file found for domain: 'nautilus-renamer'

please can you solve it...thanks in advance (and excuse me for my bad english)

Report

C

Thura

11 years ago

Thanks for reporting ;)
Please, try the updated package.

Report

Arathon89

11 years ago

thanks a lot...now i can use it...so bug solved....

Report

skooter1121

11 years ago

Moved from Win to Linux. Miss my renaming customizations I've developed over the years. I'm constantly fixing user file naming errors. Your program is just what I've been looking for.

Suggestions:

1. change: "First Letter Upper case In Each Word" to "Title Case" (Neater)
2. add: include/exclude extension radio box
for example have file Renamer.Readme.txt to Renamer Readme.txt, (currently replace <.> with <sp>) gets Renamer Readme txt, without a proper extension)
3. Add to pattern options: Text from clipboard
4. Repeat Last Renamer Action
5. Save Renamer Options as new script named....
(you could put these in a subfolder "Renamer Scripts"

Ideally add folder/ sub folder creation options.

1. New Folders from text file.... (read from Renamer Scripts folder above)
2. New Folder from filename & move file (drop extension)
3. Selected files move to New Folder Named...
4. Copy Tree Structure

Instructions to add to Nautilus Actions Menu:
Easy to do. I'll write instructions for you if you want.

Report

skooter1121

11 years ago

Moved from Win to Linux. Miss my renaming customizations I've developed over the years. I'm constantly fixing user file naming errors. Your program is just what I've been looking for.

Suggestions:

1. change: "First Letter Upper case In Each Word" to "Title Case" (Neater)
2. add: include/exclude extension radio box
for example have file Renamer.Readme.txt to Renamer Readme.txt, (currently replace <.> with <sp>) gets Renamer Readme txt, without a proper extension)
3. Add to pattern options: Text from clipboard
4. Repeat Last Renamer Action
5. Save Renamer Options as new script named....
(you could put these in a subfolder "Renamer Scripts"

Ideally add folder/ sub folder creation options.

1. New Folders from text file.... (read from Renamer Scripts folder above)
2. New Folder from filename & move file (drop extension)
3. Selected files move to New Folder Named...
4. Copy Tree Structure

Instructions to add to Nautilus Actions Menu:
Easy to do. I'll write instructions for you if you want.

Report

C

Thura

11 years ago

Thanks for the feedback ;)

I don't get the last two options of folder/subfolder creation .. Could you elaborate more?

Report

skooter1121

11 years ago

Sure

<2. New Folder from filename & move file (drop extension)>

Say you have D/L a file Flowers.jpg. Select the file, run ReNamer and it creates a new folder with the name Flowers and moves the file inside.

<3. Selected files/folders move to New Folder Named...>

Select a group of files, Create a new folder named (something, from a dialogue box) and moves all files there.

<4. Copy Tree Structure>

Highlight a folder that contains sub-folders. Flowers. Run ReNamer Copy Tree This copies just the subfolder structure without the files included. Then it puts these empty folder into a new folder called Flowers.Tree.

This is extremely helpful if you get a new client and wish to retain the same folder structure for each. EX; Main foler: Bill Smith. Subs: Advertisments, Images,Billings, Contact, Proposals... and so on.

I have a Windows tool that also does this, that I can send to you if you wish.

THANX

BTW (I must have used RenAmer 50x in the last two days.)

Report

C

Thura

11 years ago

Umm, I think those options are really not for Renamer. Renamer is for batch renaming files. They should rather exists as separate scripts.

Report

yanimrjack

11 years ago

Very helpful ! Thank you.

Report

iumbs

11 years ago

Awesome!

Report

graben

11 years ago

I suggest you add the available tags for paternize mode in the dialog box :

For this, change line 53 to this:

pattern = os.popen('zenity --title "Renamer" --entry --text "Enter the pattern:\n\n{num3} for 001 , 002 , 003 ...\n{num5} for 00001, 00002, 00003 , ...\n{num3+10} for 010 , 011 , 012 ...\n{num5+100} for 00100, 00101, 00102 ...\n{orig} Original File Name\n{dir} Parent Directory\nDate and time tags : {date} {year} {month} {monthname} {monthsimp} {day} {dayname} {daysimp}" --width=320').read().split('\n')[0]

Report

Mr-idea

12 years ago

this script is very helpful.
can you add some variables to help translating?
e.g:
zenity --list --title "$prgname"\
--radiolist --column " " --column "$Choose_One"\
FALSE "$Patternize" FALSE "$Substitute" FALSE

and list these variables to the top or bottom..?

Thanks :)

Report

C

Thura

12 years ago

If I use variables for strings as you suggest, the code will become very messy ...

I think, instead of using variables to translate, translating directly would be easier ...

Just convert Everyth inside double quotes, " " to corresponding strings ...
You don't need to translate the strings inside single quotes, ' '

Report

SDERAWI

12 years ago

Thank you for the script but when i try to download it. It says File Not Found......

Report

C

Thura

12 years ago

It is still working for me ...
How come you cannot download ?
plz, try again ...

Report

8 years ago

3.1 (7 Jul 2012)
-----------------
* fix patternize option bugs,
- change patterns
- make multiple /num,***/ patterns work
- make multiple /rand,/ patterns work
- zero fill /rand,/ patterns
* added /alphabet/, /ALPHABET/, /roman/ patterns
* Insert patterns at cursor position instead of appending at the end
* update Notifications to use gir Notify
* added unit tests
* make nautilus extension translatable

3.0 (10 Jan 2012)
-----------------
* Ported to GObject Introspection/Gtk3
* Revamp ui, so that patterns, substitution and Case can be applied simultaneously
* Fixed bug #769829
* Cleanup Code
* Remove globalinstall option
* Added debian package

2.3 (23 Oct 2010)
----------------
* Enhance substitute (support regular expressions, multiple substitutions)
* Fix patternize (before, some patterns cannot be used more than once)
* Added filename slicing pattern /filename:offset:length/
* Use dialogs for errors, instead of notifications
* Don't exists if the error is recoverable
* Get rid of custom icons (use only gtk stocks)
* Add system-wide installation
* More Translations (Thanks to all contributors

2.2 (17 Sep 2010)
-----------------
* Fixed bug #641191
* Report errors on preview

2.1 (17 Sep 2010)
-----------------
* Check for any existed file before renaming, abort if there is
* Added random number pattern
* Fixed a bug with patterize preview
* Fixed preview columns
* Fixed /dir/ patterns
* update german translations
* Added French, Finnish translations

2.0 (28 Jul 2010)
----------------
* Added preview
* Added Tooltips
* Code cleanup

1.4 (4 Jun 2010)
----------------
* Added German Translation by Jan-Christoph Borchardt

1.3 (30 Mar 2010)
----------------
* Remember recent patterns
* Return on pattern entry actives rename
* Improved Capitalize After option

1.2 (9 Mar 2010)
---------------
* Added Capitalize After option

1.1 (6 Mar 2010)
----------------
* Added Extension option
* Fixed translation bug

1.0 (12 Dec 2009)
-----------------
* rewrite GUI using pyGTK
* translation support using gettext
* simpler and more compact code

0.7
---
* Added notifications
* fix zenity windows widths and heights
* added installer script

0.6
----
* Added more functions
* Simplifies code

0.5
----
* Added Batch Renaming

0.4
----
* Make the log file hidden by default

0.3
----
* Added " Undo Last Operation "

0.2
----
* GUI Added ...
* Fix some bugs ...
* Planning to add more functions

12345678910
13
product-maker I4C Feb 19 2013 9 excellent
product-maker KEIII Oct 01 2012 9 excellent
product-maker MacWomble Aug 25 2012 9 excellent
product-maker sadi Feb 06 2012 9 excellent
product-maker heoft Jan 13 2012 9 excellent
product-maker Magog64 Jan 13 2012 9 excellent
product-maker WastedGen Apr 13 2011 9 excellent
product-maker legluondunet Dec 28 2010 9 excellent
product-maker acinic Nov 24 2010 9 excellent
product-maker 5eweryn Nov 20 2010 9 excellent
product-maker tesa Oct 23 2010 9 excellent
product-maker Brutus180 Oct 23 2010 9 excellent
product-maker f3n1x Oct 06 2010 9 excellent
Be the first to comment
KEIII
Oct 01 2012
sadi
Feb 06 2012
legluondunet
Dec 28 2010
Ibin
Dec 27 2010
acinic
Nov 24 2010
dentex
Nov 18 2010
f3n1x
Oct 07 2010
brucelee
Aug 06 2010
Brutus180
Jul 06 2010
tutroc77
May 03 2010
Betopu
May 01 2010
TheTechie
Mar 07 2010
iumbs
Nov 20 2009
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
3.1
updated Jul 07 2012
added Aug 21 2008
downloads 24h
0
mediaviews 24h 0
pageviews 24h 8
System Tags addon