Perform a web search on multiple search engines simultaneous

General discussions about LaunchBar
Post Reply
absinthblam
Posts: 9
Joined: Wed May 21, 2014 1:20 pm

Perform a web search on multiple search engines simultaneous

Post by absinthblam » Fri Jan 16, 2015 2:11 pm

forgive me if this has been covered before, i searched the forum to no avail

this blog post ( http://blog.obdev.at/post/the-sixth-sense/ ) got me exited since it specifically mentions the ability to 'Perform a web search on multiple search engines simultaneously'

i immediately created UTF8 search templates for 5 search engines.

selecting them all into the staging area is easy enough.

but once i hit space to insert the query it seems to forget that "multiple" items are staged and hitting enter launches only a single website.

if i just hit enter after selected the engines immediately without entering a query all 5 websites are opened, but of course this is pointless. i want to open 5 search sites with my query and not just the homepages of 5 engines.

what am i doing wrong?

absinthblam
Posts: 9
Joined: Wed May 21, 2014 1:20 pm

Re: Perform a web search on multiple search engines simultan

Post by absinthblam » Fri Jan 16, 2015 3:30 pm

while i'm at it, how can i force a search template to use "+" instead of "%20" as replacement for spaces in the search string? some search sites require it

absinthblam
Posts: 9
Joined: Wed May 21, 2014 1:20 pm

Re: Perform a web search on multiple search engines simultan

Post by absinthblam » Tue Jan 27, 2015 4:59 pm

since i paid for launchbar, i'd expect OBDEV support staff to answer here?

lycopodiopsida
Posts: 16
Joined: Mon Nov 10, 2014 1:01 pm

Re: Perform a web search on multiple search engines simultan

Post by lycopodiopsida » Wed Jan 28, 2015 12:22 pm

Not happening, sadly. The support of community is basically not existent in ObjDev. Documentation and tutorials are another matter. This is, maybe, the reason, why they have lost such a big pie of market share to Alfred. It is a shame, in my opinion, because Alfred is a simpler product with a superior community. Launchbar could be both.

anchorboi
Posts: 4
Joined: Thu Oct 16, 2014 3:16 pm

Re: Perform a web search on multiple search engines simultan

Post by anchorboi » Wed Jan 28, 2015 3:18 pm

I was also wondering how to actually perform a search on multiple engines at once.

I hope there is, or will be, the option to assign a shortcut to a search stack to perform it quickly.

absinthblam
Posts: 9
Joined: Wed May 21, 2014 1:20 pm

Re: Perform a web search on multiple search engines simultan

Post by absinthblam » Thu Jan 29, 2015 12:38 pm

i found a workaround, create a search template that opens a script:

x-launchbar:execute?path=/usr/local/bin/download.py&argument=*


download.py is a python script that opens multiple webpages with the argument as search string:


#!/usr/bin/python2.7
# -*- coding: UTF-8 -*-
import sys, subprocess, time
searchwebsites = ["http://www.google.at/#safe=off&q=*", "http://search.yahoo.com/search;?p=test"]
for site in searchwebsites:
subprocess.Popen(['open', site.replace("*", sys.argv[len(sys.argv) - 1])])
time.sleep(0.1)

anchorboi
Posts: 4
Joined: Thu Oct 16, 2014 3:16 pm

Re: Perform a web search on multiple search engines simultan

Post by anchorboi » Thu Jan 29, 2015 1:18 pm

For some reason I could not replicate this workaround.

I've created the search template (UTF-8) in LaunchBar, and saved the script in /usr/local/bin/, but the search doesn't perform anything.

I noticed that I do not have the python2.7 folder in /usr/bin/, but in /usr/local/bin/, but fixing that line in the script didn't seem to change anything.

AYBABTU
Posts: 9
Joined: Tue Oct 15, 2013 4:54 pm

Re: Perform a web search on multiple search engines simultan

Post by AYBABTU » Wed Feb 04, 2015 4:33 pm

I used to be able to send a text string to several search-templates via send-to (tab-key) but most of the time it did not work and just stopped at some point. ObDev support told me this is some bug related to executing AppleScripts (?) and it will be fixed with the next LaunchBar release.
So far I should uncheck the 'Open URLs in current Safari window or tab' at LaunchBar Preferences -> Actions -> Options and in fact it seems to work better this way.

absinthblam
Posts: 9
Joined: Wed May 21, 2014 1:20 pm

Re: Perform a web search on multiple search engines simultan

Post by absinthblam » Tue Feb 10, 2015 4:42 pm

@anchorboi

>I've created the search template (UTF-8) in LaunchBar, and saved the script in /usr/local/bin/, but the search doesn't perform anything.


i'd recommend testing your script in the command line:

$ /usr/local/bin/download.py test

absinthblam
Posts: 9
Joined: Wed May 21, 2014 1:20 pm

Re: Perform a web search on multiple search engines simultan

Post by absinthblam » Tue Feb 10, 2015 4:44 pm

one obvious problem is that this board mangled the whitespace and you need to fix the indentation because python needs it ;)

anchorboi
Posts: 4
Joined: Thu Oct 16, 2014 3:16 pm

Re: Perform a web search on multiple search engines simultan

Post by anchorboi » Tue Feb 10, 2015 4:49 pm

absinthblam wrote:one obvious problem is that this board mangled the whitespace and you need to fix the indentation because python needs it ;)


That might explain it. :) Could you please post the correct script via Pastebin?

Post Reply