Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 23 Jul 2014, 04:07
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Rename-files - Right click a folder to rename files
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [10 Posts]  
Author Message
don570


Joined: 10 Mar 2010
Posts: 3208
Location: Ontario

PostPosted: Tue 20 Mar 2012, 13:43    Post subject:  Rename-files - Right click a folder to rename files  

Just right click on a folder and various options are given.

German and Spanish version now available

(See the picture)

For example it can create a folder and put all your txt files in that folder.

...or rename .html files to .htm

Note that these are non recursive actions --> that means it
won't dig down in the folder. This has both benefits and drawbacks.

It kept the coding a lot simpler fo me. Wink

Note: the extension field must not begin with a dot
For instance .jpg ---> just enter jpg
or .tar.gz --> just enter tar.gz

Also extensions mustn't have whitespace!!!
You are given various warnings to make the program idiot-proof.

I have built this into my right click option package --> found HERE

rename-files-NLS-1.7.pet
Description  foreign translation locals -German and Spanish
pet

 Download 
Filename  rename-files-NLS-1.7.pet 
Filesize  3.18 KB 
Downloaded  308 Time(s) 
rename-files-1.8.pet
Description  right click a folder to rename files inside
pet

 Download 
Filename  rename-files-1.8.pet 
Filesize  7.77 KB 
Downloaded  389 Time(s) 

Last edited by don570 on Thu 12 Apr 2012, 19:33; edited 7 times in total
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 10927
Location: Arizona USA

PostPosted: Tue 20 Mar 2012, 16:12    Post subject:  

ROX already does a fine job of batch renaming (just highlight the files you want to rename, right-click them and choose Rename.) Is this supposed to be better?
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3208
Location: Ontario

PostPosted: Thu 22 Mar 2012, 18:57    Post subject:  

Flash wrote:
ROX already does a fine job of batch renaming


I wanted a good variety of types of renaming,
also I want it to be fool-proof. No accidental over writing of files
that are named the same. I'm working on that now. Wink

So far I've finished suffix renaming and numbering.

I'm using 'mv -n' to make sure that there will be no overwriting
by the new file.
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3208
Location: Ontario

PostPosted: Thu 22 Mar 2012, 19:09    Post subject: New version 1.4 rename-files  

New version 1.4

-bug fixed -- now numbering of files works as desired

file_000 is the oldest in folder

If there is a similar named file already in folder then a skipping
of the renaming occurs. There is a summary window at end of process
so that the user knows what is happening.

- also 'suffix' renaming now won't over-write an existing file.

I will continue to work on this app in the next couple of days
so that it's dependable.

_________________________________________________
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3208
Location: Ontario

PostPosted: Sat 24 Mar 2012, 16:37    Post subject: New version 1.5  

New version 1.5


I am continuing to work on this.

The warning messages need improvement!!!
But at least there is now no over-writing of existing files.

German translation is now available, thanks to RSH.

_______________________________________________
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3208
Location: Ontario

PostPosted: Sat 31 Mar 2012, 16:33    Post subject:  

version 1.6 now available

I fixed a couple of bugs.

For instance I didn't realize that mv command
could move a file into a folder. Embarassed

I think no serious bugs remain, but I will continue to test
and change the summary window design to make
it more instructive.

Spanish and German translations are now available.
Just install the local pet as well.


_________________________________________________
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3208
Location: Ontario

PostPosted: Mon 02 Apr 2012, 17:18    Post subject: version 1.7  

version 1.7

I corrected a nasty error. I didn't realize
that the command mv -n
doesn't work on Puppy Linux (other than Lucid Puppy)

I was able to change the command to

mv -i

I am now quite happy with the results Laughing
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3208
Location: Ontario

PostPosted: Tue 03 Apr 2012, 12:13    Post subject: rename-files 1.7 doesn't overwrite  

Just a note to users

rename-files 1.7 doesn't overwrite any files when it renames
or does a function, so it's completely safe to use Laughing

....and you should get a warning message if it detects
a similar named file(or folder)!!!


___________________________________________________
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3208
Location: Ontario

PostPosted: Thu 12 Apr 2012, 19:43    Post subject: Rename-files-version 1.2  

New Feature in version 1.2

It is now possible to use rename-files with filenames such as

file-1.2
file-1.2.txt

This would previously confuse Rename-files into thinking that
.2 was part of an extension ... but now it will treat the number
like it is part of file name.

In other words (if numbering option is done)
file-1.2 will be renumbered file-1.2_000 rather than
file-1_000.2

______________________________________________
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3208
Location: Ontario

PostPosted: Sat 28 Apr 2012, 11:55    Post subject:  

A useful feature of rename-files that people don't appear to
understand is

Move files with EXTENSION to their own folder

I'll explain in English why this is useful...

Let's say you have a folder with many different file formats inside,
but you want your mp3's to be alone in one folder.

Just fill in 'mp3' in field and the application does the work of
moving. There will be a folder created with the mp3 files inside.

Once this is done you can then number your mp3 files
with another feature of rename-files

Number files in folder from 000 to 999 according to date

This will put a number at the tail end of the filename.
The number will help the user to spot the files are older.

_________________________________________________
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [10 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0695s ][ Queries: 13 (0.0105s) ][ GZIP on ]