luckman212 Posted September 25, 2023 Share Posted September 25, 2023 Alfred 5.1.3 [2174] Bit of an odd question, but I noticed today that when Script Filters are triggered via a Hotkey, they appear with the workflow's icon at the top right, like this: But, the same Script Filter, triggered via its own keyword, is missing the icon (or shows Alfred's hat if configured in Theme settings) I was wondering if this was intentional, and is there any way to manually control whether the icon appears or not in the Script Filter configuration itself? It would be nice to actually have it display the icon in certain cases. Link to comment
Andrew Posted September 25, 2023 Share Posted September 25, 2023 @luckman212 when trigging a script filter directly, that script filter is unique to Alfred (i.e. the only thing running / showing). You'll also notice this if you wire a Keyword into a Script Filter, you'll see the same Script Filter icon on the right. When in the default results, depending on context, Alfred could be showing results from multiple sources / workflows. Cheers, Andrew Link to comment
luckman212 Posted September 25, 2023 Author Share Posted September 25, 2023 Ah, makes perfect sense now! Link to comment
zeitlings Posted September 30, 2023 Share Posted September 30, 2023 On 9/25/2023 at 2:58 PM, luckman212 said: I was wondering if this was intentional, and is there any way to manually control whether the icon appears or not in the Script Filter configuration itself? You have some control over it with the Script Filter's "Inbound Configuration". If set to Keyword, the icon will not show when the workflow is activated with a shortcut or an external trigger. To always show the icon, you could have a dedicated Keyword object feeding into the script filter. Link to comment
luckman212 Posted September 30, 2023 Author Share Posted September 30, 2023 That's cool @zeitlings but then you have the type <keyword> + press <enter>... not quite as smooth as having the keyword directly activate the script filter and immediately show results. I wish there was something like a "Don't show Alfred's default results" checkbox available on Script Filter objects, that would also enable this exclusive output mode. Link to comment
zeitlings Posted September 30, 2023 Share Posted September 30, 2023 You can achieve that with two script filters and an external trigger! Here's an example: https://bashupload.com/cEB3a/LJnuR.alfredworkflow Link to comment
luckman212 Posted September 30, 2023 Author Share Posted September 30, 2023 @zeitlings getting a 404 on that page. I think bashupload only allows 1 download. Can you post it to github maybe? Link to comment
zeitlings Posted September 30, 2023 Share Posted September 30, 2023 @luckman212 I'll pm you another link Link to comment
luckman212 Posted October 1, 2023 Author Share Posted October 1, 2023 Haha - still getting the 404. Link to comment
vitor Posted October 1, 2023 Share Posted October 1, 2023 I can reproduce the 404 from the previous link. https://transfer.sh may work for you. Link to comment
zeitlings Posted October 2, 2023 Share Posted October 2, 2023 Let's hope for the best 😅 https://transfer.sh/Ff3NDA4Q1v/AutoTrigger.alfredworkflow Link to comment
luckman212 Posted October 4, 2023 Author Share Posted October 4, 2023 @zeitlings I finally got it. Yes, I see your technique - very clever! Thanks for the tip. zeitlings 1 Link to comment
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