CBX Handler stops working with 13Beta

The excellent CBX_Handler has stopped working. I see an error in line 230 which shows:
If (DOpus.FSUtil.GetType(folderItem, "a") = "dir") Then

05.10.2023 22:25 CBX_Handler: Error at line 230, position 7
05.10.2023 22:25 CBX_Handler: Error 0x80004005

(Code from CBX_Handler: Comic Book Reader - Buttons/Scripts - Directory Opus Resource Centre (dopus.com)

      Set folderEnum = DOpus.FSUtil.ReadDir(doubleClickData.item)
      Set folderItem = folderEnum.Next
      ' If the first item in the archive is a directory:
      If (DOpus.FSUtil.GetType(folderItem, "a") = "dir") Then

FWIW, that's not checking if folderEnum failed or if the folder is empty.

Check that CB7, CBR and CBZ are turned on in Preferences / Zip & Other Archives / Archive and VFS Plugins, based on the type you're trying to work with.


Looks like they are on.

Can you navigate into the file and view the contents in Opus?

Is the extension on it correct for the real archive type it is? (I've seen CBR misnamed as CBZ, for example.)

Hmm - I can't. Right clicking them also does not show commands to extract, like Opus forgot that these are archives. Tried several CBRs and CBZs. (not its not calibre, it just added itself to open with)

OK, I turned the script off, exited DOpus, re-opened DOpus, turned script back on and now it seems to work.