Live data from Hacker News

Flashlight – Do anything with Spotlight

flashlight.nateparrott.com

1–7 of 7 posts

Re: Flashlight – Do anything with Spotlight

#3
post #2

So it's like Alfred workflows for Spotlight? This stands or falls with the plugins that will get developed by its users; one of which Alfred is thriving [1] [1] http://www.packal.org/

It's primarily an API on which developers can build plugins in Python (though doing a lot of useful stuff actually requires calling out to Applescript, of all things). There's no visual workflow-builder like in Alfred, although you _can_ set up triggers for Automator workflows.

Re: Flashlight – Do anything with Spotlight

#6
post #2

So it's like Alfred workflows for Spotlight? This stands or falls with the plugins that will get developed by its users; one of which Alfred is thriving [1] [1] http://www.packal.org/

It's primarily an API on which developers can build plugins in Python (though doing a lot of useful stuff actually requires calling out to Applescript, of all things). There's no visual workflow-builder like in Alfred, although you _can_ set up triggers for Automator workflows.

Why are Flashlight plugins written in Python? (I'm asking out of curiosity; I like it.)

JS and Ruby are bundled with OS X as well and Apple started offering some JavaScript APIs in 10.10 for stuff that could previously only be done with AppleScript.

Re: Flashlight – Do anything with Spotlight

#7

Earlier quoted context omitted.

It's primarily an API on which developers can build plugins in Python (though doing a lot of useful stuff actually requires calling out to Applescript, of all things). There's no visual workflow-builder like in Alfred, although you _can_ set up triggers for Automator workflows.

Why are Flashlight plugins written in Python? (I'm asking out of curiosity; I like it.) JS and Ruby are bundled with OS X as well and Apple started offering some JavaScript APIs in 10.10 for stuff that could previously only be done with AppleScript.

No particular reason. The API currently involves importing `plugin.py` files and calling functions in them, which makes it a bit simpler, but it should be possible to bridge with other languages. I've considered using Javascript for Automation, but there isn't a huge amount of documentation around it, so it hasn't been that valuable.