nautilus-renamer
Nautilus Scripts
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:

4 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

Sheldor42

4 years ago

Hey, i am searching for an alternative to krename without the whole kde library dependencies, with Nautilus integration. Your App looks great, but is it possible to add the feature to reorder your files bevore renameing them. e.g. if you have the files a.txt, b.txt, c.txt and want to rename them to 1.txt, 2.txt, 3.txt but in a way that a->2 b->1 c->3. This is possible in krename, and i miss this feature in gnome.

Report

Sheldor42

4 years ago

Hey, i am searching for an alternative to krename without the whole kde library dependencies, with Nautilus integration. Your App looks great, but is it possible to add the feature to reorder your files bevore renameing them. e.g. if you have the files a.txt, b.txt, c.txt and want to rename them to 1.txt, 2.txt, 3.txt but in a way that a->2 b->1 c->3. This is possible in krename, and i miss this feature in gnome.

Report

legion1978

4 years ago

is there a lucid ppa or something? will it compile?
thank you

Report

Thura

4 years ago

I am not sure, the latest version is tested on python2.7, and it requires python-gojbect, gir1.2-gtk-3.0, gir1.2-notify-0.7.
If you can install those on your system, it will probably work. Otherwise, you are stuck with version 2.3, which use pygtk and
should work on lucid.

https://launchpad.net/nautilus-renamer/trunk/2.3

Report

legion1978

4 years ago

ok ill see what i can do. thanx

Report

inameiname

5 years ago

I have been using this script for a long while now, and it is really something I use a lot. Anyway, I just tried to use the latest version, but unfortunately, it won't run. I keep getting this upon trying to run it in a terminal:

Traceback (most recent call last):
File "./Renamer.py", line 55, in <module>
class RenameApplication(Gtk.Application):
File "/usr/lib/python2.7/dist-packages/gi/module.py", line 268, in __getattr__
return getattr(self._introspection_module, name)
File "/usr/lib/python2.7/dist-packages/gi/module.py", line 101, in __getattr__
self.__name__, name))
AttributeError: 'gi.repository.Gtk' object has no attribute 'Application'

I installed it the way the INSTALL script said, so I do not know what is causing it.

Oh, and I am running Natty.

Report

aenp

5 years ago

Korean translate is complete in Launchpad.

So cool App it is.

Report

ketetefid

6 years ago

Thank you very much for your nice script. Just what I needed.
I get this error while installing:


rm -rf ~/.gnome2/nautilus-scripts/.rdata
rm -rf ~/.gnome2/nautilus-scripts/Renamer
mkdir -p ~/.gnome2/nautilus-scripts/.rdata
./scripts/genmo.py po/ ~/.gnome2/nautilus-scripts/.rdata/po/
File "./scripts/genmo.py", line 20
print "Creating directory %s ..." % modir
^
SyntaxError: invalid syntax
make: *** [install] Error 1



what's wrong?
Gentoo, python3.1

Report

WastedGen

6 years ago

Love it, good job guys ;]

Report

dentex

6 years ago

@TM I'm not to install this (I bet) excellent script.
I think I'll wait for the .deb package...

ciao!

Report

Thura

6 years ago

Unfortunately, I am getting busy with my final year project these days, and hardly have time to dive into packaging stuff.

So, deb package may not be coming any time soon ;(

Report

maximeilan

6 years ago

Spanish translate is complete in Launchpad

Report

f3n1x

6 years ago

Sorry, we have corrected the file. This is the new link: http://ubuntuone.com/p/LBd/ or http://dl.dropbox.com/u/1844827/Ubuntu/po.zip

Any questions or problems with the translation in touch!

Again, thank you for your attention! :)

Report

f3n1x

6 years ago

Sorry, we have corrected the file. This is the new link: http://ubuntuone.com/p/LBd/

Any questions or problems with the translation in touch!

Again, thank you for your attention! :)

Report

f3n1x

6 years ago

First I would like to congratulate you for the great work!

I translated it to Portuguese in Brazil: http://ubuntuone.com/p/IzG/

The translation files are in tar.gz package

Any questions, criticism and suggestion please contact us.

A big hug and continue with your excellent project.

Report

Thura

6 years ago

f3n1x, thanks for the translation. But, I can't open/extract your tar.gz file.

tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors

Report

hellocatfood

6 years ago

Would you be able to add the ability to rename the files with random numbers between a certain value e.g. /numrandom1-20 or something like that?

Report

Thura

6 years ago

Ok, added that pattern ;)

Report

inquata

7 years ago

Hey Thura, thanks for your great work! :)

I translated it to German: http://dl.dropbox.com/u/1309838/de_DE.po

Also, I wrote a more unobtrusive automatic download & install script (http://dl.dropbox.com/u/1309838/nautilus-renamer.sh) because I am going to integrate this into http://launchpad.net/ubuntuadvance

If you start using Launchpad for this project, it could be translated much easier and better. You could also provide a PPA for easier downloading and updating.

Additionally, I would like the pattern codenames and title (Renamer) to be translatable and the patterns to be explained without README directly in the application.

That way it would be much more integrated. :)

Report

Thura

7 years ago

Thanks for the translation, I have updated the script.

We can use tooltips to explain patterns directly. It is pretty easy to add tooltips, but it is quite troublesome for me to write, because of my poor english.

If you are interested, please read the TODO in line 87 of Renamer source file.

Currently, I am on vacation. I will consider using launchpad and other suggestions as soon as I get back (probably in July).

Report

TheWiseDj

7 years ago

sudo apt-get install gprename

that program already exists.

Report

westeh

7 years ago

It might be possible allready, but this is my suggestion: I often use the same pattern. May I somehow save my most used pattern ( {num2+1}{ext} ) to show up in the patternfield as a default?
Then I can just add my new name and dont use time for writing the pattern each time.

Activate the renamebutton by presing enter would also be nice.


Report

Thura

7 years ago

Ok, recently used patterns are remembered now ...
Return in pattern entry will also trigger rename ...

Report

westeh

7 years ago

Thank you for a very usefull script, and for answering so fast! Multiple renamling has really been a problem - until now...:-)

Harald

Report

Amigotux

7 years ago

Very useful. Thanks a lot !!

Report

4 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

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install
Score 78%
78.00 Likes
22 Dislikes
Details
version
3.1
updated Jul 07 2012
added Aug 21 2008
downloads
page views 4093