Jump to content

Script Filter and relative path (SnippetsLab Search)


vquest

Recommended Posts

Hi,

 

 I'm trying to understand the script filter object. Looking at the script filter in the SnippetsLab Search workflow they don't actually have the script in the filter text field. There is this line:

./SnippetsLabAlfredWorkflow --action=search --query="{query}"

I'm wondering what's going on here. I assume the script filter code is embedded into the SLAlfredWorkflow executable. How is that executable made?

Link to comment
1 minute ago, Stephen_C said:

The author of the workflow will have created it. What you're seeing is typical of the more complex (i.e. sophisticated!) workflows.

 

Stephen

So they write a bash or zsh script, or perhaps python or something else, and turn it into an executable independent of Alfred?

Link to comment
17 hours ago, vitor said:

That one is not a script, but a compiled executable. Probably written in Objective-C or Swift. The difference is mostly technical. Everything @Stephen_C explained still applies.

I guess it would be compiled as a command line app? I'm familiar with Swift but I have never built a CLI app.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...