Created
November 6, 2011 06:42
-
-
Save pdxmph/1342557 to your computer and use it in GitHub Desktop.
Get current Firefox URL with rb-appscript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "appscript" | |
include Appscript | |
firefox = app("Firefox") | |
events = app("System Events") | |
firefox.activate | |
events.keystroke("l", :using => [:command_down]) | |
events.keystroke("c", :using => [:command_down]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment