Shortcut to a Multi-Rename Tool

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
JohnTC
Junior Member
Junior Member
Posts: 33
Joined: 2005-03-05, 03:36 UTC

Shortcut to a Multi-Rename Tool

Post by *JohnTC »

Is it possible to invoke the Multi-rename tool with a specific saved settings?

For instance, let's say I have a set of saved settings called "Rename 1". Can I somehow invoke the MRT to just execute with that set of saved settings?

Thanks!
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

Yes, you can assign the command MULTIRENAME Rename 1 to a buttonbar button.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

ts4242 wrote:Yes, you can assign the command MULTIRENAME Rename 1 to a buttonbar button.
...or to a user-command (EM) in order to assign a hotkey for it.
JohnTC
Junior Member
Junior Member
Posts: 33
Joined: 2005-03-05, 03:36 UTC

Post by *JohnTC »

Thanks!
JohnTC
Junior Member
Junior Member
Posts: 33
Joined: 2005-03-05, 03:36 UTC

Post by *JohnTC »

But actually, how would that work as a menu command?

I tried

MENUITEM "MRT - Rename 1", cm_MultiRenameFiles, Rename 1

But TC threw a shoe when starting. I tried several variations with the same result.

(For those of you who like things literally, the error was "Unknown identifier in line 127 of menu file: cm_MultiRenameFiles, Rename 1)

And I don't suppose these things are documented anywhere?

Thanks
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You should know that CM_ commands don't support parameters. So you can use following steps:

1. Open cm_CommandBrowser (it may be opened from different places like edit buttonbar or assign hotkey dialogs; however it is useful so you can add it to your menu or buttonbar).

2. Add your command to usercmd.ini section e.g. with name em_Rename1:

Code: Select all

MULTIRENAME Rename 1
2. Add a line to your menu file:

Code: Select all

MENUITEM "MRT - Rename 1", em_Rename1
JohnTC
Junior Member
Junior Member
Posts: 33
Joined: 2005-03-05, 03:36 UTC

Post by *JohnTC »

Awesome!

Thank you.

How do you *know* that? It there a "TC Internals" doc someplace?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Great that it finally works for you!

We're just long-time forum and TC users. :)
Post Reply