This is a script I made for a friend who has a huge movie collection. He wanted to keep track of movie's directors, countries and a few other fields. He bought Opus just for this script. I thought it was so cool I had to perfect it and share it.
This is what the script does for movies in any file format. There are many other columns not shown.
There's also a cool button that opens the imdb page for the selected movie.
I'm really excited about this way of working with files and look forward to feedback and a fruitful discussion. Apart from feedback and brainstorming on this script, I am particularly interested in hearing your thoughts about using file naming conventions to manage metadata.
1. The script is based on RegexColumnsReloaded (mmm, actually it's the other way around)
2. There is a full tutorial on my new page about Using File Names to Make a Database
3. It showcases how if you use a simple naming convention, Opus can display any column you invent for files of any kind.
4. You can adapt this simple naming convention to files of any kind.
In fact I adapted it to make Columns: Books & Comics Filename Database.
The basic convention for a file is:
Inside the brackets, the metadata looks like this:
==> It is a sequence of key=value, separated by underscores.
==> The fields can be specified in any order.
==> Many fields have aliases in case you don't remember the name.
==> For each file, you only specify the fields you want.
5. Adding or editing columns is a snap. The column definitions have really cool features. See the section of the tutorial on editing and defining fields.
6. The Magic Button
The button has three functions:
==> Toggles a Movies format you specify in Prefs / Folder Formats / Favorite Formats. (If you prefer to use the Content Type Format in the same menu, the function's code is easy to adapt.)
==> Launches the imdb page for the selected movie. For that, the filename must already contain a TT field corresponding to the movie page. For instance, set tt=tt0258463 for The Bourne Identity [LINK imdb.com/title/tt0258463/ ]
==> Google searches for the movie's imdb page when the tt field is not yet in the filename. The first one is usually right, so just double-click the tt code and add it to the file name.
Movies.dcf (7.87 KB)
7. List of fields
8. Movies format
You will want to make a Books+Comics format either in
Prefs / Folder Formats / Favorite Formats
Prefs / Folder Formats / Content Type Formats
In that format, I recommend shrinking the filename column, as you don't need to display it. Even when the file name is shrunk, you can easily select the file when enable full row selection in on (clicking anywhere on the row selects the file). The Movie button toggles full row selection so you shouldn't have to worry about that.
This is what my current view looks like.
9. Bulk addition of metadata on many files
This is a rename problem. See the bulk metadata operations section of the tutorial.
In short, you can set up rename presets.
Here's one which inserts a sample token ( cc=US token ) if you already have [metadata in brackets]:
=> Opus rename in regex mode
=> Search for ^([^]]+)(].*)
=> Replace with \1_cc=US\2
=> Save the preset, adapt when needed.
Please bear in mind that Windows has a limit on the total length of path + file name: 260 characters. That's a lot of characters but it's good to keep in mind. Better now bury the files deep in the file hierarchy.
MovieFilenameDB.js.txt (37 KB)
0.9.2 At tbone's request, changed the column prefix from Movies_ to Movies.
0.9.1 Added three properties (got these ideas from Apocalypse): fileOnly, dirOnly, fullCupValue.