Ben Hull Posted March 23, 2021 Posted March 23, 2021 Hi there I am web developer and would like to do something along the following lines: * Set up a website which is just a list of labels and URLs (in JSON format or something) * Have my Alfred draw on that list and have it periodically cached * When I start typing, it offers autocomplete options from the list - if I click any of those suggestions taken from the list, I am taken the corresponding URL found in the list Is this viable in any way? Does it make sense?
Andrew Posted March 23, 2021 Posted March 23, 2021 @Ben Hull Take a look at the Script Filter workflow object which is designed for this purpose: https://www.alfredapp.com/help/workflows/inputs/script-filter/ The JSON format to show items in Alfred is defined here: https://www.alfredapp.com/help/workflows/inputs/script-filter/json/ Your script would be responsible for caching the data from your website, but you could select the option to have Alfred filter the results, which would leave you with simply loading the JSON, saving it locally, and then returning it to Alfred. Cheers, Andrew christianmagill 1
Ben Hull Posted March 23, 2021 Author Posted March 23, 2021 Brilliant - thanks for this. Looks like that has all the info I need. Cheers
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now