Tab-Labelizer - Extend the folder names shown in your tabs

The error was caused by change in Directory Opus 11.5.5 (beta).

This meant that you could not call string methods (like resolve in our case) on the path object returned from the Resolve method. You can see object type using this code

Object.prototype.toString.call(path)

Updated the script to V1.2, it now requires DOpus 11.7

  • Updated to be compatible with DOpus 11.5.5 and later versions (fixed bug caused by change to Resolve method).
  • Added config descriptions (new feature in DOpus 11.7).
  • Added ExtendedConfig, which is multiline config (new feature in DOpus 11.7). the internal JSON config can now be edited in the config window.

Re the ExtendedConfig. I took the JSON object that is in the code and stringify'ed it. This can then be edited by the user saving them from needing to edit the script. Stringify'ing the JSON object is nice as we don't need manually convert it to a string in code which would require lots of escaping. One downside is the extended config comments that are in the code don't show in the config window. Not sure if I have created any performance issues here.

Feedback most welcome.

Tbone, I guess we are the only ones that use this script as no one else seemed to notice that it was not working any more.