Renaming Files - Is this Possible

Discuss and share scripts and script files...
Post Reply
tim_crouse
Posts: 26
Joined: 05 Oct 2015 23:25

Renaming Files - Is this Possible

Post by tim_crouse »

Sometimes when I download files from the web such as PDFs the file names may be in a form like:

xxxx_xxxx_xxx.pdf

Would it be possible to have a script that renames files to something like:

Xxxxx Xxxx Xxxx.pdf

Best Regards
-Tim C.

admin
Site Admin
Posts: 62698
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Renaming Files - Is this Possible

Post by admin »

This will do it for all selected files:

Code: Select all

#130; #138;

tim_crouse
Posts: 26
Joined: 05 Oct 2015 23:25

Re: Renaming Files - Is this Possible

Post by tim_crouse »

I apologize for my ignorance but I have no idea how the response provided would rename files as title case and replace underscores with spaces.

Code: Select all
#130; #138;

I tried the attachment code pasted into the run script dialog on a couple of selected files but it had no effect.

Also is there a way to assign a short cut to a script or select load a script then right click a file or selection and thru a short cut menu apply script?

I must be missing something because with all the attention you have given this app I cannot believe code has to be dropped into a dialog to run it.

Thanks in Advance
-Tim C.
Attachments
TitleCasee FileName.xys
Attempt at renaming files as titlecase
(932 Bytes) Downloaded 13 times

admin
Site Admin
Posts: 62698
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Renaming Files - Is this Possible

Post by admin »

#130 = File | Rename Special | _ to Spaces
#138 = File | Rename Special | A* A*.aaa

Works fine here.

Marc
Posts: 13
Joined: 04 Jun 2023 17:41

Re: Renaming Files - Is this Possible

Post by Marc »

All menu commands have an ID. To display them:
Help > Command IDs on menu

Don't forget the :: on the command line (addess bar) to tell the system that this is a script.
  1. Select your files
  2. In address bar (Ctrl+Shift+F12 if not showed), type:

    Code: Select all

    ::#130; #138
  3. Make it an icon in the button bar if you want to use it again
Tested: works fine :D
(English in not my native language (french), I use an online translator)

Post Reply