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)
try
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"
else
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
beep
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.