Is it possible to assign a shortcut key to a rename preset?

I found a very useful "rename" preset in the forum to rename files using information in the clipboard. I Can see myself using that preset often -- is there a way to assign it to a shortcut key? Thanks.

Create a hotkey in Customize window and assign Rename PRESET="PresetName" command

Could you please direct me to that preset Dennis?

@Dennis: I'm not sure this is what you are asking for, but here goes...

When I download files, they usually have as part of their file names, unwanted text, for example:

C++ Beginners Tutorial 1 (For Absolute Beginners) - YouTube.MKV

In the above example, I want to remove - YouTube from the name, and I also want MKV to all be in lower-case letters.

I created a toolbar button that lets me select one or more files that have the unwanted text in their names, then clicking the button removes the unwanted text, just like that. The button code looks like this:

Rename FINDREP=ext PATTERN=".MKV" TO=".mkv" Rename FINDREP=ext PATTERN=" - Youtube." TO="."

This then gives me:

C++ Beginners Tutorial 1 (For Absolute Beginners).mkv which looks cleaner to me

You can add even more of these type of rename patterns into a single button, like this:

Rename FINDREP=ext PATTERN=".CTF" TO=".ctf" Rename FINDREP=ext PATTERN=".GIF" TO=".gif" Rename FINDREP=ext PATTERN=".JPG" TO=".jpg" Rename FINDREP=ext PATTERN=".BMP" TO=".bmp" Rename FINDREP=ext PATTERN=".MP4" TO=".mp4" Rename FINDREP=ext PATTERN=".MKV" TO=".mkv" Rename FINDREP=ext PATTERN=".AVI" TO=".avi" Rename FINDREP=ext PATTERN=".FLV" TO=".flv" Rename FINDREP=ext PATTERN=".MP3" TO=".mp3" Rename FINDREP=ext PATTERN=".WAV" TO=".wav" Rename FINDREP=ext PATTERN=".PDF" TO=".pdf" Rename FINDREP=ext PATTERN=".MHT" TO=".mht" Rename FINDREP=ext PATTERN=".sfv" TO=".SFV" Rename FINDREP=ext PATTERN=" - Youtube." TO="." Rename FINDREP=ext PATTERN="_(song365.cc)." TO="." Rename FINDREP PATTERN="---" TO="" Rename FINDREP PATTERN="." TO=" " Rename FINDREP PATTERN=" - Copy" TO=""

The first 13 lines modify the capitalization of letters in the extensions of file names (from all upper case to lower case).

Rename FINDREP PATTERN="." TO=" " replaces periods in file names with spaces while leaving the period before the extension alone:

This.file.name.txt becomes This file name.txt

Rename FINDREP PATTERN=" - Copy" TO="" removes - Copy from any file names that have it, etc.

Once you've created your button, you can assign a hotkey for that button. If you try to modify a file's name, but the rename would result in a name that already exists, Directory Opus will alert you.

AlbatorV's Rename PRESET="PresetName" is easiest and cleanest if you already have the rename set up as a preset and just want a button to run it.

You can also completely define one or more rename operations in the button itself without using presets, as in SomeYoungGuy's post, but you don't need to do that if you just want to run a preset.