Getting error: Object required: 'scriptCmdData.Func.sourcetab'

Greetings Gurus, I have a vbscript that I've been using for some years now that iterates selected files. Suddenly it's not working and I'm getting the error below. Please advise.

I'm getting the error Object required: 'scriptCmdData.Func.sourcetab' (0x800a01a8)

The line below was working before, did something change?
For Each file In scriptCmdData.func.sourcetab.Selected

That probably means you're running it in a context where there isn't a source tab/folder.

Presumably it's being run from a floating/docked toolbar or system-wide hotkey? If so, it should look for a window to use as the source, if any are open. If that's failing, it's likely the same issue as in your other recent thread (Using an alternate Windows shell breaks the 'Go' Command).