Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Quickly open a new Chrome tab/window from anywhere' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Quickly open a new Chrome tab/window from anywhere
Authored by: Lri on Jul 06, '11 01:51:12AM
A similar script for Safari:
tell application "Safari"
	reopen -- opens a browser window if there's no existing one
	tell (window 1 where (its document is not missing value))
		if name of its document is not "Untitled" then set current tab to (make new tab)
		set index to 1
	end tell
end tell
tell application "System Events" to tell process "Safari"
	perform action "AXRaise" of window 1 -- `set index` doesn't always raise the window
	-- keystroke "f" using {option down, command down}
end tell

[ Reply to This | # ]