Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.97 KB

File metadata and controls

28 lines (22 loc) · 1.97 KB

DirectoryOpus-FileMimeTypeAndEncodingColumns-plugin

This plugin adds two columns, MIME type and Encoding using FileMimeTypeDetector from DOpus-Scripting-Extensions.
The plugin uses the content of a file and not its extension.
The screenshot below shows how the encoding and MIME type are correctly determined, even for files with incorrect extensions. Example

Extra Features

  • Mime-type aliases can be specified by modifying mimeTypeAliases dictionary at the beginning of the script

Note

Prerequisites

  • You need to have DOpus-Scripting-Extensions installed: download it from the release page

Limitations

  • The script doesn't support DOpus portable mode because it requires a PC to have DOpus-Scripting-Extensions installed.
  • The plugin is relatively fast but not instantaneous. Thus, for a folder with many files, you might need to wait a little bit for all files to get its MIME type.

How to use

  • Make sure DOpus-Scripting-Extensions are installed
  • Download the js file from the latest release
  • Copy the js file to the %AppData%\GPSoftware\Directory Opus\Script AddIns folder
  • The extra columns will become available in the Settings->File Display Columns->Appearance->Columns:.
  • The script uses aliases for common MIME types. You can change them by modifying the mimeTypeAliases variable at the beginning of the script.

References