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: a1ed2cb197
This commit is contained in:
Max Howell 2009-10-07 14:17:16 +01:00
parent 346e42d4b9
commit e2bed20d21

View File

@ -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} <Formula
url '#{url}'
homepage ''
md5 ''
homepage '#{homepage}'
cmake depends_on 'cmake'