Extras/GrowlAction/main.applescript
author Peter Hosey
Wed Apr 15 08:28:07 2009 -0700 (2009-04-15)
changeset 4191 54eff2ab48e0
parent 2198 00bb370b332f
child 4202 6abf08ebf5e8
permissions -rw-r--r--
Fix the Automator action. The “in bundle with identifier” parameter doesn't exist on my 10.5.5 machine (for some reason, even though the AppleScript Studio Release Notes claim it has since Tiger), which breaks compilation of the action's main script. We don't call the function that uses that phantom parameter, anyway, so I fixed the problem by simply axing the function.
ingmarstein@1816
     1
-- main.applescript
ingmarstein@1816
     2
-- GrowlAction
ingmarstein@1816
     3
ingmarstein@1816
     4
on run {input_items, parameters}
ingmarstein@1816
     5
	set the output_items to {}
ingmarstein@1816
     6
	set the notification_title to (|notificationTitle| of parameters) as string
ingmarstein@2198
     7
	set the notification_description to (|notificationDescription| of parameters) as string
ingmarstein@1816
     8
	set the notification_priority to (priority of parameters) as integer
ingmarstein@1816
     9
	set the notification_sticky to (sticky of parameters) as boolean
ingmarstein@1816
    10
	tell application "GrowlHelperApp"
ingmarstein@1816
    11
		register as application "Automator" all notifications {"Automator notification"} default notifications {"Automator notification"}
ingmarstein@1816
    12
		notify with name "Automator notification" title notification_title description notification_description application name "Automator" sticky notification_sticky priority notification_priority
ingmarstein@1816
    13
	end tell
ingmarstein@1816
    14
	return input_items
ingmarstein@1816
    15
end run