Sha256: 938f95d2ddf1b4278c050a8dd1caa300484e635363628df184f9c3ca76f8151b

Contents?: true

Size: 1.44 KB

Versions: 4

Compression:

Stored size: 1.44 KB

Contents

-- growlNotify.applescript
--
-- Created by Mike Hagedorn on 2007-10-31.
-- Copyright (c) 2007 Silverchair Solutions. All rights reserved. http://www.silverchairsolutions.com
-- based on script from the growl website
-- works around the fact that growlnotify doesnt work on leopard

-- pass in like osascript growlNotify.applescript
on run argv
	set rspectitle to item 1 of argv
	set rspecmessage to item 2 of argv
	set rspecimage to item 3 of argv
	set rspecsticky to item 4 of argv
	
	tell application "GrowlHelperApp"
		-- Make a list of all the notification types
		-- that this script will ever send:
		set the allNotificationsList to {"RSpec Notification"}
		
		-- Make a list of the notifications
		-- that will be enabled by default.
		-- Those not enabled by default can be enabled later
		-- in the 'Applications' tab of the growl prefpane.
		set the enabledNotificationsList to {"RSpec Notification"}
		
		-- Register our script with growl.
		-- You can optionally (as here) set a default icon
		-- for this script's notifications.
		register as application "Growl-RSpec AppleScript Notifications" all notifications allNotificationsList default notifications enabledNotificationsList icon of application "Script Editor"
		
		-- Send a Notification...
		notify with name "RSpec Notification" title rspectitle description rspecmessage application name "Growl-RSpec AppleScript Notifications" image from location rspecimage sticky rspecsticky
	end tell
	
end run

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
amikula-conditional_dcommit-0.1.0 data/growlNotify.applescript
amikula-conditional_dcommit-0.1.1 data/growlNotify.applescript
conditional_dcommit-0.1.3 data/growlNotify.applescript
conditional_dcommit-0.1.2 data/growlNotify.applescript