Transform The Actual Text Of An Orp File Into Code For A Button

How do I transform the actual text of an orp file into code for a button - without using Rename Preset="My Preset Name"?

A related question is whether best practice is to have NO standalone buttons for renames but instead have only presets. When I need a button, I then just put the preset in the button with Rename Preset="My Preset Name".

Using the Preset is usually best, since then it's only defined in one place instead of two. (Unless you know you'll never want to use it from the Rename dialog, in which case it doesn't really matter.)

The Rename command has arguments that do everything Presets can do. Exact details will depend on the preset.