Jump to content
Sign in to follow this  
bitnugget

Open web searches in background?

Recommended Posts

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.

Share this post


Link to post

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.

Share this post


Link to post

This could likely be achieved with some AppleScript and a little workflow - it might be worth asking a more specific question in the workflow help sub-forum :)

Share this post


Link to post

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

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  
×
×
  • Create New...