How could I pass shell script output to notification?
There needs to be a Set Value of Variable action in between the script and notification actions.
Set Value of Variable accepts input from previous action and assigns it to a variable with the name of your choice.
This variable is then available for other actions. Just start typing the name of the variable in a field and it should pop-up in the auto-suggestion.
In 10.9 or later, you can use the display notification
AppleScript command:
osascript -e 'on run {t}' -e 'display notification "" with title "t"' -e end title
In 10.8 you can use terminal-notifier:
terminal-notifier -title title -message ''
terminal-notifier can be installed with sudo gem install terminal-notifier
.