| 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-- |
| 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 |