I the past, in order to determine whether the Growl helper is running on macOS, I've used
tell application "System Events"
set isRunning to (count of (every process whose bundle identifier is "com.Growl.GrowlHelperApp")) > 0
end tell
But recently, both this and an alternative thats been suggested
tell application "System Events" to set isRunning to exists (processes where name is "com.Growl.GrowlHelperApp")
just run forever. This seems to happen (only) when it (or more precisely the app "Hardware Growler" is not running), but is still clearly not the desired outcome.
How do I determine whether Growl is running using AppleScript?