Notify via Growl

Here’s an action script to display the number of results via Growl:

-- Announce number of results via Growl
-- Created by Eric Boehnisch-Volkmann on Thu Feb 23 2006.
-- Copyright (c) 2006. All rights reserved.

on results(theResults)
		set appName to "DEVONagent"
		set notificationName to "DEVONagent Notification"
		set notifs to {notificationName}
		set this_count to count of theResults
		if this_count = 1 then
			set this_announcement to "One result"
			set this_announcement to this_count & " results"
		end if
		tell application "GrowlHelperApp"
			register as application appName all notifications notifs default notifications notifs icon of application "DEVONagent"
			notify with name notificationName application name appName title "Search Run Complete" description "DEVONagent has completed a search run. " & this_announcement & " found." with sticky
		end tell
	on error
	end try
end results

After saving this script in the folder ~/Library/DEVONagent/Action Scripts, you can select it via the Execute Script pop up menu of the Actions tab of the Search Sets panel.


Growl is fantastic! :smiley:

Is that ~/Library/Application Support/DEVONagent/Action Scripts ?

Yes. But the latest releases already include this script.


I saw that, too :wink: Is there a way to set the sction script for all search sets? (just wondering, but not really that necessary)


No, you have to select it for every set. But usually there aren’t that many sets and therefore that shouldn’t be a problem - hopefully :slight_smile: