Hello,
To have access to pyrenamer Nautilus since it requires:
1) in your home/.gnome2/nautilus-script (attention to point ahead gnome2: it is a hidden directory), you create a new text document that you call eg "mass renaming"
2) with the text editor you open this document "mass renaming" and you paste this:
Code:
/ bin / bash
# Open pyrenamer with the currentDir of nautilus as workdir.
# Do not need to select any file in the currentDir.
# Nautilus "Rename mass" Script #
if [ "$ 1" = ""] then
WDIR = $ (NAUTILUS_SCRIPT_CURRENT_URI # file: / /)
WDIR = $ (WDIR / /% 20 /)
else
filetype = $ (file "$ 1")
$ filetype = filetype (# # *:)
if [ "$ filetype" = "directory"] then
WDIR = $ (NAUTILUS_SCRIPT_SELECTED_FILE_PATHS%% $ 1 *)
WDIR = $ WDIR / $ 1
else
WDIR = $ (NAUTILUS_SCRIPT_SELECTED_FILE_PATHS%% $ 1 *)
fi
fi
pyrenamer "$ WDIR"
3) you save and then you change its properties to make it executable. If all went well, your little text file "mass renaming" (for example) should now appear with an icon in Nautilus executable. To use it, when you are on a picture right click and select "Scripts" and there you will have a new entry for "mass renaming" (the name of the script actually!) By selecting, pyrenamer opens.
Note, however, if you select a single file it will be well accepted by pyrenamer ... by cons if you selected multiple files ... this is not true pyrenamer has selected the entire folder (well that's what happens in my case ... as it is written in the header of the script for that matter).
Bookmarks