Created
June 2, 2009 06:06
-
-
Save kbrock/122096 to your computer and use it in GitHub Desktop.
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
framework 'ScriptingBridge' | |
safari = SBApplication.applicationWithBundleIdentifier('com.apple.Safari') | |
google_tab=safari.windows.first.currentTab | |
cmd="document.f.q.value='mac ruby'" | |
safari.performSelector(:"doJavaScript:in:", withObject:cmd, withObject:google_tab) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment