How Do I Activate a specific Safari Window using rb-appscript?
问题 I can't get rb-appscript to activate a specific Safari window. It is always activating the most recently active window. (in irb, assuming rb-appscript is already installed) require 'appscript' include Appscript safari = app 'Safari' safari.open_location "http://www.google.com" safari.open_location "http://www.apple.com" safari.open_location "http://www.bing.com" safari.documents.URL.get => ["http://www.bing.com/", "http://www.apple.com/", "http://www.google.com.ph/", "http://www.apple.com