Not the first time I install a script... Yesterday I tried the regular approach, copying CopyContent.vbs.txt to AppData\Roaming\GPSoftware\Directory Opus\Script AddIns, but the button calling CopyContent said "unknown function". Looking at Prefs / Toolbars / Scripts, under CopyContent it says Failed (init)
That's why since qiuqiu mentioned commands I tried the old approach of creating a user command directly in the Customize menu.
I'm not sure why Dopus.Strings.Get isn't working, but I can't get it to work either. The XML at the bottom has some unusual formatting and case in places, but it doesn't seem to be (just) that which is causing the problem. I'll take a look in more detail next week, as either something is wrong in Opus or the documentation (or I'm just confused myself).
Found the problem: Script resources don't work if the file is saved with Unix-style line endings. I'm guessing GitHub converts line endings to that format for some reason.
We'll make that work in the next update, but you can also fix it for now by copying the text and pasting it into a new file.
Fantastic. Nice sleuthing, Leo.
That kind of things does pop up every once in a while… Line endings, BOM or no BOM… But not so often that I remember to think of it.
Wishing you a great week.