trikon / growl

Automatically exported from code.google.com/p/growl
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Growl 1.3 and AppleScript backward compatibility #280

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What feature or enhancement do you propose?
Backward compatibility of AppleScripts which use Growl.

What problem does it solve/What benefit does it provide?
Suggeation (it works on Growl 1.3b3, but it not verified on Growl 1.2.x):
-- Find if Growl is run on Mac:
tell application "System Events"
    try
        set GrowlAno to (count of (every process whose name is "GrowlHelperApp")) > 0
        set GrowlAno to (count of (every process whose name is "Growl")) > 0
    end try
end tell
-- Talking to Growl ID com.Growl.GrowlHelperApp should be the same for Growl 
1.2 and 1.3. 
if GrowlAno is true then
    tell application id "com.Growl.GrowlHelperApp" …

Also might work:
tell application "System Events" to set GrowlAno to (count of (every process 
whose name contains "Growl")) > 0
But it could interfere with another process contains string Growl.

Could you update developer documentation and/or Growl to ensure backward 
compatibility of exists AppleSctipts?

I develop one public AppleScript and I 'd like to implement Growl Notofocation 
to next version, so I wouldn't release 1 version of AppleScript to each version 
of Growl :-)

Original issue reported on code.google.com by czechxt...@gmail.com on 19 Sep 2011 at 10:29

GoogleCodeExporter commented 8 years ago
the applescript docs will definitely be updated for the 1.3 release, to also 
reflect the dropping of the PICT data from the notification message. But to 
also add documentation for the GrowlControl script suite. 

with the new script suite you'll additionally be able to determine whether the 
user has Growl paused (not displaying notifications). pause/resume displaying 
growl notifications, show/hide the rollup window, turn on/off network 
forwarding.

Original comment by rarich...@gmail.com on 23 Sep 2011 at 9:20

GoogleCodeExporter commented 8 years ago
thanks, we made one slight optimization in the isRunning part; set GrowlAno to 
(count of (every process whose bundle identifier is 
"com.Growl.GrowlHelperApp")) > 0 this will always work since our bundle id 
isn't going to be changing ever.

the documentation page will be updated to reflect this as well as the sample 
applescripts in both the bindings dir and on the downloads page.

Original comment by rarich...@gmail.com on 21 Oct 2011 at 5:27

GoogleCodeExporter commented 8 years ago
Documentation updated to address this:

http://growl.info/documentation/applescript-support.php

Closing, resolved.

Original comment by ch...@growl.info on 31 Oct 2011 at 2:54

GoogleCodeExporter commented 8 years ago

Original comment by ch...@growl.info on 26 Nov 2011 at 6:33