.
 
.

ÜberwareTM

View Forum Thread

Anyone can view the forums, but you need to log in in order to post messages.

> Forum Home > Feature Requests > Growl Nottifications

  Tue, 11/Jan/2011 5:36 PM
Phil
3 Posts
I would love to have a Grown notification from smedge when renders complete or fail.

Any chance?

Thanks.

Phil
   
  Wed, 12/Jan/2011 2:52 PM
Robin
1136 Posts
Someone else requested this to me just yesterday. I think it should be pretty easy to integrate into Smedge. I'll look into it and get more info.

Thanks
-robin
   
  Wed, 12/Jan/2011 4:39 PM
Robin
1136 Posts
Turns out this is super easy and can be implemented with any version of Smedge.

Growl has the ability to send notifications using AppleScript. Smedge can then start the AppleScript using the Herald component. A simple AppleScript like this should cover most of your needs:


on run argv
tell application "GrowlHelperApp"
-- Register Smedge with Growl
set the allList to {"Smedge Notification"}
set the enabledList to {"Smedge Notification"}
register as application "Smedge" all notifications allList default notifications enabledList icon of application "Smedge"

-- Get the message info from the command line that started this script
if the number of items in argv < 1 then
set the notificationTitle to "Error"
set the notificationMsg to "The script was called with no parameters. You must supply at least the message to display, and optionally the title of the notification"
else if the number of items in argv < 2 then
set the notificationTitle to "Smedge Notification"
set the notificationMsg to item 1 of argv
else
set the notificationTitle to item 1 of argv
set the notificationMsg to item 2 of argv
end if

-- Send the notification
notify with name "Smedge Notification" title notificationTitle description notificationMsg application name "Smedge"
end tell
end run


Save this script somewhere on your system. Then, create a Herald event to respond to the event you are interested in. The action should be Execute a Command. The command should be something like this:

osascript /path/to/script.scpt "Title of message" "Text of message"


You can use Smedge variables in either of the message strings, and you can optionally leave off the title of the message (it will use "Smedge Notification" by default). For example, this may be a useful script for a Job Finished Event:

osascript /path/to/script.scpt "Job $(Name) Finished"



Edited by author on Fri, 30/Sep/2011 4:33 PM
   
  Thu, 20/Jan/2011 1:35 PM
Robin
1136 Posts
By the way, integrating with Growl for Windows is even easier. Use the growlnotify command from Herald or event commands to send notifications.

Thanks
-robin

Edited by author on Thu, 03/Feb/2011 3:54 AM
   
  Thu, 05/May/2011 11:56 AM
Jamie
102 Posts
Yeap, the Growl for windows python api works like a charm. You'll need a table or some sort of lookup for the user name and their IP address tho.
   
Page 1 of 1

.
.
.
.
©2000 - 2013 Überware. All rights reserved