Skip to content

Commit

Permalink
fix for Mac App Store version of Growl
Browse files Browse the repository at this point in the history
  • Loading branch information
ttscoff committed Nov 4, 2011
1 parent beca3c1 commit a7ed17b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions bin/otask
Expand Up @@ -92,8 +92,8 @@ class OTask
if @options.growl
procs = app("System Events").processes.name.get(:result_type => :list)

if procs.include? "GrowlHelperApp"
app("GrowlHelperApp").register(:all_notifications => ["Alert"], :as_application => "OTask", :icon_of_application => "OmniFocus.app", :default_notifications => ["Alert"])
if procs.include? "Growl"
app("Growl").register(:as_application => "OTask", :all_notifications => ['Alert'], :default_notifications => ['Alert'], :icon_of_application => "OmniFocus")
else
@options.growl = false
end
Expand Down Expand Up @@ -234,7 +234,7 @@ class OTask
end

def growl(title, message)
app("GrowlHelperApp").notify(:title => title, :description => message, :application_name => "OTask", :with_name => "Alert") if @options.growl
app("Growl").notify(:title => title, :description => message, :application_name => "OTask", :with_name => "Alert") if @options.growl
end

def process_command
Expand Down
Binary file modified pkg/otask-0.1.gem
Binary file not shown.
6 changes: 3 additions & 3 deletions pkg/otask-0.1/bin/otask
Expand Up @@ -92,8 +92,8 @@ class OTask
if @options.growl
procs = app("System Events").processes.name.get(:result_type => :list)

if procs.include? "GrowlHelperApp"
app("GrowlHelperApp").register(:all_notifications => ["Alert"], :as_application => "OTask", :icon_of_application => "OmniFocus.app", :default_notifications => ["Alert"])
if procs.include? "Growl"
app("Growl").register(:as_application => "OTask", :all_notifications => ['Alert'], :default_notifications => ['Alert'], :icon_of_application => "OmniFocus")
else
@options.growl = false
end
Expand Down Expand Up @@ -234,7 +234,7 @@ class OTask
end

def growl(title, message)
app("GrowlHelperApp").notify(:title => title, :description => message, :application_name => "OTask", :with_name => "Alert") if @options.growl
app("Growl").notify(:title => title, :description => message, :application_name => "OTask", :with_name => "Alert") if @options.growl
end

def process_command
Expand Down

0 comments on commit a7ed17b

Please sign in to comment.