From a1ed2cb19706e317d34f1a9f2efe8a2d2388afae Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sun, 4 Oct 2009 19:32:02 +0100 Subject: Set homepage in created scripts to frontmost Safari URL A bit of fun with Applescript, for those of us who use Safari. --- Library/Homebrew/brew.h.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index 83cb79c50..4d0f45377 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -29,13 +29,15 @@ def __make url, name path = Formula.path name raise "#{path} already exists" if path.exist? + homepage = `osascript -e 'tell application "Safari" to if running then get URL of document of first window'`.chomp + template=<<-EOS require 'brewkit' class #{Formula.class_s name}