Rename PRESET=last and opening the Rename Dialog

The command Rename PRESET=last conveniently repeats the last rename call, but this is done directly without opening a dialog again.

Is there a way to make Opus9 open the Rename dialog for Rename PRESET=last? (e.g. via a "DIALOG" option)

The Rename dialog already remembers the state of the Preview mode and of the Advanced mode. Remembering and showing the last rename settings/fields in the Rename dialog would be something I'd use a lot.

On a similar note, Rename PRESET=!list lets you add a dynamic list of rename presets, e.g. to the menu. Quite nifty. Again these entries will only directly apply to the selected files.

Is there some way to set an option that would let you select a preset from the "!list" but open up the Rename dialog?

(I'll admit the latter case may be not that useful, since normally you would select the Preset of choice directly in the Rename dialog (in Advanced mode)).

And just another quick one while on the rename subject. I presently use:

Enable File Information Fields Old Name: * New Name: {shootingtime|D#yyyy-MM-dd}-{shootingtime|T#HH}'{shootingtime|T#mm}'{shootingtime|T#ss}.{ext} rename my DigiCam images, i.e. deriving a file name from the time/date info stored in the EXIF fields.

This works fine, but is there a way to actually use the file's creation or modification date in a rename? E.g. DigiCam mpg movies do not have these EXIF fields, thus I cannot properly rename them with time/date.

You can use any column/field when renaming. For the list of columns click the drop-down arrow that appears next to the new name field when file information is enabled in the rename dialog.

[quote="AEon"]Is there a way to make Opus9 open the Rename dialog for Rename PRESET=last? (e.g. via a "DIALOG" option)

This will do it:


I have read about 50% of the reference manual but have not encountered this yet. This is really neat. Thanks for the tip.

[b]Date/time {modified}[/b] yields [b]2008-10-26 23;16;17[/b]

Would there be a way to define the separator (here ";") differently? I could write a script to do it though.

[quote="anjan_oleti"]This will do it:


Thank you so much. I wanted the Rename to work in this way for years now, but never found a way (reading the manual) to do it. - Wipes one tear of joy from cheek - :slight_smile:

You do realise there's a 'Last Rename' entry in the Presets list in the dialog that you can click on (like any other preset)?

Yes, but I never got around using it, strangely. But "Rename PRESET=last ADVANCED" is exactly what I was looking for.



does not open the Rename dialog for when selecting entries in the list (of the menu). Not really that important, but I thought I'd mention this.

You can format the dates/times like in the example you yourself posted. :slight_smile:


You mean like:

[code]New Name: {modify|D#yyyy-MM-dd}-{modify|T#HH}'{modify|T#mm}'{modify|T#ss}.{ext}



Either, would have been very convenient. But does not work.

Even for date and time (current date/time) there are limits to what you can do with them.

{date|dd'-'MMM'-'yyyy} // Allows separator, yields: 2008-11-02 {time|hhmmss} // Yields 12;25;17 {time|hh'-'mm'-'ss} // Separator - is ignored

Incidentally, some experimentation with escaping ' shows that:


can be replaced with:


I.e. you need to use four ' to create one literal ' in the {} brackets.

In your first code block you're using modify when the name is modified.

Assuming you want to use - as the separator, you're also putting in ' ' quotes which shouldn't be there. This is all you need:


Here are the correct versions of your second code block:

{date|D#dd-MMM-yyyy} // Yields 02-Nov-2008 {time|T#hhmmss} // Yields 010220 {time|T#hh-mm-ss} // Yields 01-02-20 {time|T#HHmmss} // Yields 130220 (24 hour time) {time|T#HH-mms-s} // Yields 13-02-20 (24 hour time)

Your last part is correct. You do need four ' to create a literal ' inside a date format string. I think that's because the string is being parsed twice. So the first level sees '''' which is two escaped ' characters (' is also the escape character) and outputs ''. The second level then takes the '', which is one escaped ' character, and outputs the literal ' that you want.

Escaping any character other than ' in the format strings seems to be straightforward: Just put a ' before it. It's only escaping ' itself which seems to cause the complication.

Sorry for missing that... I seem to be "burned out"... works wonderfully.