Clicky

lucianofuentes
I would like to create an Alfred workflow which replicates the Finder toolbar button functionality (ie: open Houdahspot at current frontmost finder location). I know the button is right there.. but I've become quite adept at using the keyboard and would like to keep my hands on the keys for this extra step.
 
Does Houdahspot accept a Finder location being passed through to it via Applescript? if not.. is there some other way I could approach this?
0 0
houdah
Hi!

The button is actually implemented using AppleScript.

tell application "HoudahSpot"

finderSearch

activate

 

end tell

 
Best,
Pierre Bernard
Houdah Software s.à r.l.

Houdah Software s. à r. l.
https://www.houdah.com

HoudahGeo: One-stop photo geocoding
HoudahSpot: Advanced file search utility
Tembo: Easy and effective file search
0 0
Jono
This sounds really useful. I've tried this in Alfred and can make HoudahSpot open with the location to search set to the front Finder window. I tried this script

on alfred_script(q)

 

tell application "HoudahSpot"

finderSearchq

activate

end tell

end alfred_script


This opens a HoudahSpot search with the Finder window location, but the search query typed in Alfred isn't passed to HoudahSpot's search.


If I try using BlitzSearch it passes the search query I type in Alfred, but doesn't use the Finder's current window as the location.

on alfred_script(q)

 

tell application "HoudahSpot"

blitzSearchq

activate

 

end tell

end alfred_script


Any idea how to get it search the current Finder window and pass on the search query typed in Alfred? If it helps I can attach both Alfred 2 workflows.

0 0
houdah
Hi!

This is currently not possible.

I will see how I can add this feature.

Best,
Pierre Bernard
Houdah Software s.à r.l.
Houdah Software s. à r. l.
https://www.houdah.com

HoudahGeo: One-stop photo geocoding
HoudahSpot: Advanced file search utility
Tembo: Easy and effective file search
0 0
Jono
Thanks. It would also be great to be able to pass the current folder/disk selected in Alfred and perform a search with an action.
For example bring up the Documents folder in Alfred, hit Tab then select an action to search that folder with HoudahSpot.
0 0
houdah
Hi Jono,
 
I have a release candidate forHoudahSpot 3.8.1.
 
This extends the blitzSearch AppleScript command:

tell application "HoudahSpot"

set the myList to {"/Users"}

 

blitzSearch "test" scopesmyList with finderScope

end tell


I would appreciate if you could give that a test drive.

Best,
Pierre Bernard
Houdah Software s.à r.l.
 
Houdah Software s. à r. l.
https://www.houdah.com

HoudahGeo: One-stop photo geocoding
HoudahSpot: Advanced file search utility
Tembo: Easy and effective file search
0 0
Jono
Wow, that was quick :)

It works well but keeps adding an extra path to the locations to search.
For example I set the path to search to "/Users/Jono/Documents" and it searched my Documents folder, but also added ~/Downloads. On another test it also added ~/Library/Containers.

It would be good if you could specify searching the current users home folder without specifying the users name. E.g:

set the myList to {"~/Documents"}


or

set the myList to {(path to home folder as text) & "Documents"}



I have another question about automating B
litzSearch, but I'll put that in another post.

 

0 0
houdah
Hi!

Not a bug. A feature.

The option "with finderScope" adds the current Finder window as scope.
Leave that off, and you will just get the values from the list.

Best,
Pierre Bernard
Houdah Software s.à r.l.
Houdah Software s. à r. l.
https://www.houdah.com

HoudahGeo: One-stop photo geocoding
HoudahSpot: Advanced file search utility
Tembo: Easy and effective file search
0 0
Jono
Ooops. That shows my lack of AppleScript knowledge :D
Thanks!
0 0