Jump to content

Open web searches in background?


Recommended Posts

  • 4 months later...

Is there a way to toggle a web search to open in the background only, without changing the active tab?

 

I often do a bunch of web searches at once, but it's inconvenient when the browser changes away from the page I am looking at.

 

This is handled by the browser and not by Alfred. Alfred perform the equivalent of you typing:

open http://alfredapp.com

at a terminal. If you browser is configured to open links in a new tab, thats what opening URLs in Alfred does. If it's configured to open them in a new window, thats what will happen.

Link to comment
  • 7 months later...

It's been a while…  Almost a year since I first asked this.  I recently started learning AppleScript and put this together.  I thought I'd share what I made:

on alfred_script(q)
tell application id "com.google.Chrome"
	tell window 1
		set tab_position to get active tab index
		tell (make new tab)
			set URL to ("https://www.google.ca/search?q=" & q)
		end tell
		set active tab index to tab_position
	end tell
end tell
end alfred_script

edit:  Sorry if this is not in the right sub-forum…

Edited by sgtkabukiman
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...