Replacing Growl on macOS Sierra


#1

Panorama 6 still uses Growl for notifications, and Growl is not compatible with macOS Sierra. It turns out, however, that it is pretty easy to modify the Panorama 6 libraries to use Apple’s notification center instead of Growl. There are two procedures that need to be modified, both are in _DialogAlertLib. To open these procedures for editing use the Wizards>Developer Tools>Custom Statements wizard.

The first modification is to the GrowlRunning procedure. Simply replace ALL of the code in this procedure with this one line.

functionvalue true()

The second modification is to the GROWL procedure. At the end of this procedure is about a dozen lines of code that start with executeapplescript. Replace all this code with these three lines.

executeapplescript '
    display notification "'+NotificationDescription+'" with title "'+ NotificationTitle +'"
'

Once these changes are made any code you have that does Growl notifications will work properly, but using Apple’s notification system instead of using Growl.


#2

And for those of us that were stubborn and just moved Growl from the Incompatible Software back to where it was before, Growl continues to work as always with nary a difference. I’ve done this on several computers with no obvious ill effects.

But now that we have a workaround, perhaps I start paying attention to the rules. :wink:

How far back to what OS will Apple’s notification work? Hmmm. Some of my stuff is running on older computers. I’m not seeing an obvious way to determine the version of macOS.


#3

Huh, I didn’t even think to try that.

I think Apple’s notification goes back to 10.8. I’m not sure if this AppleScript method of generating a script will work that far back, though.

For older computers, just don’t make the patch.


#4
message shellscript({sw_vers -productVersion})

#5
info(“osversion”)

gives you the system version as well as the build number.


#6

Even though the Panorama X Help file states that this function is carried over from Panorama 6, it is not in the Pan 6 Reference file and generates an error “Illegal INFO() argument” if executed in Pan 6.


#7

Thanks Gary


#8
That only works in Pano X

I have all of my clients still working in Classic.

KJM
info(“osversion”)

gives you the system version as well as the build number