Noob Question: Advanced Rename / Scripting

This is a horribly noob question!

I'm trying to access the advanced rename functions so I can have a go at creating some custom rename scripts.

Thing is ....

WHERE is it!?!?!?!? :slight_smile:

I can't find the scripting window! And my attempts to find the 'Advanced' button have failed.

If I select some files and hit rename I just get the normal Windows rename file operation.

Is there a way to bring up the scripting window?

Ideally I'd like to create a bunch of rename scripts, and add a popup menu button on the main toolbar that allows me to select the script.

Is it possible?

Thanks in advance
Matt

Select some files and click the Rename button on the toolbar. It's between the Create Folder and Delete buttons, by default.

If the simple Rename dialog opens, just click the Advanced button at the bottom.

Opus remembers which one you used last and will display it again the next time you click the Rename button.

(You can also make buttons which always open the simple or advanced dialogs, regardless of the last one used, if you want to.)

Once you're in the advanced Rename dialog you should see a bunch of checkboxes in the top part. Select the Script mode checkbox if you want to create a rename script. That will add the script editor to the window.

Note: That's assuming you want to do something complex using VBScript, JavaScript, Perl, etc.

If you just want to do one or a few wildcard, find & replace or regular-expression renames then Script Mode may be overkill. If you don't need programming language features then it's usually easier to create a toolbar button which runs the Rename command with a few simple arguments instead... There are two types of rename scripting, really. :slight_smile:

If you look through the Rename Scripting forum you'll find posts that give examples of the different ways you can automate the rename command.

Some posts show you rename presets, which are basically saved copies of whatever you type into the rename dialog and the options you choose.

Some posts use VBScript to do complex things.

Some posts show how to create buttons to do renaming.

Some of the posts show multiple ways to do the same thing, e.g. this one shows how to do something using both the rename command (in a button) and a rename preset (in the GUI).

You can do that in a few different ways. Which way is best depends a bit on which style/complexity of rename operation you're thinking of. Have a look at the stuff I've described above and let us know what kind of thing you're aiming for -- e.g. what sort of rename operatons do you want to have in your menu -- then we can give you some tips on how best to achieve it.

Below are a couple of screenshots. One of a button which does a very simple rename using command-line arguments. The other of the advanced Rename dialog in script mode with the start of a VBScript.



[quote="mattgorner"]I'm trying to access the advanced rename functions so I can have a go at creating some custom rename scripts.

Thing is .... WHERE is it!?!?!?!? :slight_smile:[/quote]

First you have to call the "rename" function (you have to have a file selected for that). Possibly you have to click the "advanced" button to have the full rename dialog.

You can find "rename" in -> customize -> commands, just type it into the filter field.

I'm clicking on the rename button, but the problem is, I don't get ANY dialog, just inline renaming. So I can't click on the 'Advanced' button!

Looked in prefs to see if there was a switch from Inline to Advanced but I couldn't see anything.

The correct button should look like the icon below. Is that what you're clicking?

If it is, hold down Alt and click the button to quickly open it in the command editor (second screenshot below). It should just have Rename in the Function field. Does it?



Are you doing this on the Desktop? The Opus functions only work in real file system folders, so try going to C: and see if it works then :slight_smile:

If Desktop was the problem, you can do either of these two things to work on files on your desktop using all of Opus:

  1. Go to /desktopdir instead. (That is a built-in folder alias which will take you to directory containing your personal desktop files.)

Or

  1. Add Desktop to the list of paths that Opus should treat as real in Preferences - Folders - Virtual Folders.

Thanks guys, you're right, it was the Desktop / Virtual folder thing preventing it from appearing.