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 Sat 25 Oct 2014, 12:56
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 Posts_count  
Author Message
don570


Joined: 10 Mar 2010
Posts: 3345
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-1.9.pet
Description  right click a folder to rename files inside
pet

 Download 
Filename  rename-files-1.9.pet 
Filesize  7.85 KB 
Downloaded  443 Time(s) 
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  341 Time(s) 

Edited_times_total
Back to top
View user's profile Send_private_message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11122
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: 3345
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: 3345
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: 3345
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: 3345
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: 3345
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: 3345
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: 3345
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: 3345
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 
don570


Joined: 10 Mar 2010
Posts: 3345
Location: Ontario

PostPosted: Thu 02 Oct 2014, 13:58    Post_subject:  

version 1.9

New version allows right click of a mount point such as
/mnt/sdb1 and right click works.

This allows all the files with a particular extension to be moved safely
to a separate folder.
This helps to tidy up a USB stick for example.

However note that jpeg images may have .jpg or .jpeg or .JPG extension
so the right click might have to done for each extension.
__________________________________________________
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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