View Single Post
Good to hear that that is fixed.

In the meanwhile, I have updated the script in the original post so that it can optionally get its search string directly from LaunchBar, bypassing the applescript search dialog.

It also understands a couple of switches which can be added at the end of the search string, to override the defaults for search scope (remaining/all) and script behaviour (new window/existing window).
--a (Search ALL)
--r (Search REMAINING)
--nw (Display results in NEW WINDOW)
--ew (Display results in EXISTING WINDOW)
These switches can be combined, but should be separated by spaces, e.g.
<search string> --ew r
<search string> --a nw
(The switches can also be used in the applescript search dialog, and will override the search scope button choice).

Note that the defaults are set at the top of the script by the lines:
Code:
property pblnNewWin : true
property pblnDefaultRemaining : true
and can be changed by editing either or both of these to false in place of true

--

Last edited by RobTrew; 2010-09-28 at 04:17 AM..