AppleScript Finder window count in Mojave

If I have one Finder window with two tabs open in High Sierra, the script below will return 1:

tell application "Finder" to count windows

In Mojave it returns 2 — but it won’t split the tabs into separate windows if I manipulate their bounds separately. Which means my trusty old dual window script is now broken. And the Finder dictionary still doesn’t contain a tab object as such. Does anyone know how to get a count of windows as distinct from tabs in Mojave?

Looks like a bug.

Have you tried a workaround? Something like this?

tell application "Finder" to activate

tell application "System Events" to tell process "Finder"
	click menu item "Move Tab to New Window" of menu 1 of menu bar item "Window" of menu bar 1
end tell

Good thinking, that gets me most of the way back. I’d still rather be able to distinguish between tabs and windows and not split out a tab if I already have two separate windows open, but I guess I’m not holding my breath for Apple to add a tab class to the Finder dictionary.

I am afraid they won’t even fix it unless you report it.