Skip to content

@elasticthreads /AppleScript Googlers
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
some AppleScript gists to open a new tab for web search
BEST (pops up a dialog to enter a search term and then opens that google search in a new tab in whatever browser is default):
activate
set gSearch to the text returned of (display dialog "Google:" default answer "")
set gSearch to "http://www.google.com/search?q=" & gSearch
tell application "System Events" to open location gSearch
Safari:
tell application "Safari"
tell front window to set current tab to make new tab
activate
end tell
tell application "System Events" to key code 3 using {command down, option down}
Chrome:
tell application "Google Chrome"
tell front window to make new tab
activate
end tell
Firefox:
tell application "System Events"
tell application "Firefox" to activate
keystroke "t" using command down
key code 3 using {command down, option down}
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.