Jump to content

Help using Alfred 5.5 caching


Recommended Posts

I have a script filter with a tediously long list of items which displays in Alfred in a /bin/zsh --no-rcs window like this:

 

cat <<EOF
{
  "items": [
    {
      blah blah blah
	},
    ……
    {
      blah blah blah
    }
  ]
}
EOF

I need to cache that list using the new Alfred 5.5 utility but much fruitless experimentation has yet to show me how and where to do it.

 

In essence, where and how do you use that cache utility in this context?

 

Stephen (yet again revealing ignorance of a language to which he is allergic)

Link to comment
  • 3 weeks later...

Is there a programatic way to flush this cache? I have a script filter that reads a directory with 100s of files and builds the results for the script filter. these files don't change often and hence I was creating another file where I would cache these results. however, when sometimes this directory has addition/removal of files and I have to refresh the cache file as well. Right now, I'm doing this refresh with a script. Any way to use this cache feature and flush the cache when needed. Not sure if the options listed help without me open the workflow in alfred preferences. 

```

 

  • Editing the Script Filter object.
  • Clicking Flush in the debugger.
  • Reloading the workflow.

 

```

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...