Search the Community
Showing results for tags 'scriptfilter'.
-
https://www.alfredapp.com/help/workflows/inputs/script-filter/json/
-
Hello there. To build cleaner workflows I needed to use some of the new fields found in Alfred 3.4.1 and 3.5. I usually use the fantastic package from Joe Tannenbaum to build my workflows but it's not updated and its fluent api is starting to show its limitation with the new nested fields. So I build my own. I started using it to build the v2 of my Alfred Time package and I'm quite pleased with it so I'm thinking, if you need to build workflows that handle the new nested field, you might want to have a look at my workflow. If not, Joe's package might have a nicer API.
-
I'm working on a script to play music using MPD. I want to list available albums and have Alfred filter them rather than doing the filtering myself in a script filter. But when I check the "Alfred filters results" check box, the result is an empty list regardless of what I type: If, on the other hand, I uncheck that box, I get a list of albums as expected, but I can't type to filter them: Here's my code, in Python. It's really not very complicated: from __future__ import unicode_literals from __future__ import print_function import json import os import
-
Hello, Im rewriting my old alfred 2 workflows using great alfred 3 json api and it is difficult to understand what icon types I can use - https://www.alfredapp.com/help/workflows/inputs/script-filter/json/- it is not clearly described there(( "icon": { "type": "fileicon", "path": "~/Desktop" } - What other icon types I can use? Can I load icons using url? (I know that was impossible in alfred 2) or I should use something like https://github.com/sananth12/ImageScraper ? this is my old workflow preview I use it not only for movies but for parsing dynamic web content and
-
Filtering Script Filter results with arguments?
mschultz posted a topic in Workflow Help & Questions
Newbie question, and maybe I'm missing something, but does Alfred not filter the results of a script filter based on arguments? I have a fully functioning filter, but it seems odd that Alfred doesn't filter the results based on the value of the argument. For example, if I have a script filter with the keyword "Press", requiring an argument, and the items "one","two","three", I'd expect that typing "Press o" would limit the results to "Press one", where typing: "Press t" would limit the results to "Press two" and "Press three" I've tried both populating and omitting the uid field, to n- 3 replies
-
- scriptfilter
- script
-
(and 1 more)
Tagged with:
-
Hey Guys, I was playing around with the Script Filter XML a bit and now I have the following script, which does not work, but I cant tell why: cat << EOB echo "<?xml version='1.0'?>" echo "<items>" for line in $(gpg --list-keys | grep -E -o "\b[a-zA-Z0-9.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9.-]+\b") do echo "<item uid='$line' arg='$line'>" echo "<title>$line</title>" echo "</item>" done echo "</items>" EOB Strange thing is: When I execute the script in my bash an copy the output as xml in the ScriptFilter, everything works fine. I s
-
Is it possible to have the text '{query}' as part of a title in Alfred's results? I have a test worflow, that uses the ScriptFilter to output items. Keyword is test and no arguments are required. The XML is being generated via a sh call to a file called XML.sh, which just cats out an XML. There are two items in the result, each with a title of "this is a test for '{query}'" The first item has an arg value = 'hello', and second item has arg value = 'world'. I want to have two items shown in Alfred with the text this is a test for '{query}' but {query} gets replaced with the text