luckman212 Posted May 2 Share Posted May 2 (edited) Alfred 5.5.2257 In light of my recent discovery of the (apparently old) feature in Script Filters where the actionable bit for Universal Actions can be customized via the "action": { ... } key, I've been playing around. One thing I noticed is that for items with null/empty args, the <TAB> key to enter Universal Action picker will not activate. To me, this feels like a bug, or at least an artifically-imposed limitation. Reposting the example JSON from the other thread here. Example - try actioning the "Thing with no arg" item below cat <<EOJ { "items": [ { "title": "Fruit", "arg": "Apple", "subtitle": "arg='Apple' ua='Orange'", "action": { "auto": "Orange" } }, { "title": "Folder", "arg": "~/Documents", "subtitle": "arg='~/Documents' ua='~/Desktop'", "action": { "file": "~/Desktop" } }, { "title": "URL", "arg": "https://www.alfredapp.com/help/workflows/inputs/script-filter/json/", "subtitle": "arg='Alfred JSON help' ua='https://alfredapp.com'", "action": { "url": "https://alfredapp.com" } }, { "title": "Thing with no arg", "arg": "", "subtitle": "arg='' ua='~/Documents'", "action": { "file": "~/Documents" } }, ]} EOJ Edited May 2 by luckman212 Link to comment
luckman212 Posted May 5 Author Share Posted May 5 (By actioning I meant to write "universal actioning") Link to comment
vitor Posted May 5 Share Posted May 5 Your example JSON was quite clear, thank you. I have opened an internal issue for it. Link to comment
luckman212 Posted May 5 Author Share Posted May 5 Thanks Vitor! For now, I work around this bug by setting arg to "_" and then using a JSON object right after to reset arg back to "". Kludgy but works. Link to comment
vitor Posted May 5 Share Posted May 5 Easier way is to use the Custom Argument in the Inbound Configuration and leave it empty. luckman212 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