Hazel OCR script in Nitro PDF Pro - does it currently work?

I just replied to this in an almost identical thread.

If your OCR script has “get the needs ocr of document 1” in it, it seems that no longer works. comment out the line and change the next line to “if true then”.
It’s not a perfect fix since it will ocr previously ocred documents, but that is what an older script did.

The older script:

tell application "PDFpenPro"
	open theFile as alias
	tell document 1
		ocr
		repeat while performing ocr
			delay 1
		end repeat
		delay 1
		close with saving
	end tell
	tell application "PDFpenPro"
		quit
	end tell
end tell

Of course replace PDFpenPro with Nitro PDF Pro to use the Nitro version.