From e2bed20d21058bdf2ece65896aeffa56129d849f Mon Sep 17 00:00:00 2001 From: Max Howell Date: Wed, 7 Oct 2009 14:17:16 +0100 Subject: [PATCH] Revert "Set homepage in created scripts to frontmost Safari URL" This reverts commit a1ed2cb19706e317d34f1a9f2efe8a2d2388afae. The is running part of the Applescript didn't seem to prevent Safari getting loaded when it wasn't running when used via osascript. It worked in ScriptEditor! Honest! Also we decided that it probably wouldn't work often enough anyway. Discussion: http://github.com/mxcl/homebrew/commit/a1ed2cb19706e317d34f1a9f2efe8a2d2388afae --- Library/Homebrew/brew.h.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index 4d0f453779..83cb79c509 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -29,15 +29,13 @@ 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}