The Rename dialog in Directory Opus lets you store presets which you can re-use to perform common rename tasks. It's also possible to import and export these presets to share them with other people.
Opus 12 example:
Older version example:
Listed below are some rename presets that I find useful.
I've included the regular expressions and wildcards here in case they are helpful examples for people new to regular expressions.
If you just want to use the presets and don't care how they work then you don't need to type them into Opus. Instead, I've attached a zip file with each preset saved as a .orp file.
To load a preset into your Rename dialog, make sure the dialog is in Advanced mode, then select Import... from the File menu. That loads the preset from disk but only temporarily. To add it to your personal list of presets, click the Add button above the list on the right and give it a name.
Here's what all the presets in this post do:
-
Add - after number -- Regexp
([0-9]+) (.*)
to\1 - \2
03 Survivalism.wma -->
03 - Survivalism.wma -
Add 1. Prefix -- Wildcard
*
to1.*
06 - The Fragile.wma -->
1.06 - The Fragile.wma -
Add 2. Prefix -- Wildcard
*
to2.*
09 - The Big Come Down.wma -->
2.09 - The Big Come Down.wma -
Count Files -- Regexp
(.*)\.(.*)
to[#].\2
hello.jpg, there.jpg, etc. -->
0001.jpg, 0002.jpg, etc. -
Make Safe Name -- Regexp
(.*)([^-0-9a-zA-Z._]+)(.*)#
to\1_\3
Replaces all "unsafe" characters with underscores, so the filename is suitable for putting on a web server, for example. Everything except letters, numbers and '-' '_' and '.' will be replaced with '_'.
2.11 - Ripe (With Decay).wma -->
2.11_-_Ripe__With_Decay_.wma -
MCE Episode Rename -- Regexp
.*(..)_(..)_(200.)_(..)_(..)_(..).dvr-ms
to\3-\2-\1 - \4-\5.dvr-ms
Used for sorting TV shows recorded with Media Center. Just keeps the date and time, in a nicer format, since I put the shows' names in their parent folders. Easily modified if you want to keep the titles, though.
The Daily Show with Jon Stewart_More 4_25_04_2007_00_26_03.dvr-ms -->
2007-04-25 - 00-26.dvr-ms -
Move to Artist Subdir -- Regexp
^([^-]+) - (.+)$
to\1\\\2
The Sanderson Pitch - Dive (album version).mp3 -->
The Sanderson Pitch\Dive (album version).mp3 -
Move to Letter Subdir -- Regexp
(.)(.+)
to\1\\\1\2
Gail_Porter_002_1024.jpg -->
G\Gail_Porter_002_1024.jpg -
Move to Year-Album Sudir -- Regexp (.*) -
([0-9][0-9][0-9][0-9]) - (.*)
to\1\\\2 - \3
Audioslave - 2006 - Revelations -->
Audioslave\2006 - Revelations -
Shooting Time -- Wildcard
*
toBirthday Party\{shootingtime|D#dd-MMM-yyyy} - {shootingtime|T#hh.mm} - [#].jpg
(Opus 11 and earlier: Turn on Enable file information fields.)
Inserts the EXIF shooting-time value into the names of photos. The "Birthday Party" part can be changed when the preset is used to create whatever subdirectory you want for the images, or removed completely if you don't want to move them as part of the rename.
P1000291.JPG -->
Birthday Party\07-Jan-2007 - 01.32 - 001.jpgRelated thread: Set Created/Modified timestamps to EXIF Shooting Time
-
Sort Music by Tags -- Wildcard
*
to{mp3artist} - {mp3year} - {mp3album}\{mp3track|#2} - {mp3title}.{ext}
(Opus 11 and earlier: Turn on Enable file information fields.)
Uses tag data inside of music files to generate their filenames and organise them into album folders.
Track 02.wma -->
John Coltrane - 1957 - The Ultimate Blue Train\02 - Moment's Notice.wma -
Strip Artist -- Regexp
(.*) - (.*) - (.*)
to\2 - \3
Nine Inch Nails - 03 - Love Is Not Enough (Live At Rehearsals).flac -->
03 - Love Is Not Enough (Live At Rehearsals).flac -
Strip Number -- Regexp
(.*) - (.*) - (.*)
to\1 - \3
Nine Inch Nails - 03 - Love Is Not Enough (Live At Rehearsals).flac -->
Nine Inch Nails - Love Is Not Enough (Live At Rehearsals).flac -
Strip Year from Album -- Regexp
(.+) - [0-9][0-9][0-9][0-9] - (.+)
to\1 - \2
Red Hot Chili Peppers - 2006 - Stadium Arcadium - Jupiter -->
Red Hot Chili Peppers - Stadium Arcadium - Jupiter -
Swap Various Artists -- Regexp
(.+) - (..) - (.+)
to\2 - \1 - \3
David Bowie - 23 - I'm Deranged (reprise).wma -->
23 - David Bowie - I'm Deranged (reprise).wma
opus9_various_rename_presets.zip (4.1 KB)