Alan He Posted September 28, 2022 Share Posted September 28, 2022 For example, I want set count as selected text's length. So count should be a variable. Link to comment Share on other sites More sharing options...
vitor Posted September 29, 2022 Share Posted September 29, 2022 (edited) Making the field editable in the object would be pretty specific. You can override the value with a JSON Utility: { "alfredworkflow" : { "config" : { "count" : "{query}" } } } Though it’s still capped at 10. You can do it with JXA too: function run(argv) { Array.from({length: argv[0]}, () => Application("System Events").keyCode(123, { using: "shift down" })) } Just remember the solution is going to be inherently hacky, whichever way you go about it. Edited September 29, 2022 by vitor Alan He 1 Link to comment Share on other sites More sharing options...
Alan He Posted September 29, 2022 Author Share Posted September 29, 2022 thank you. but gui support is better. Link to comment Share on other sites More sharing options...
vitor Posted September 29, 2022 Share Posted September 29, 2022 As mentioned, making it editable at this point would be highly specific. It would degrade the experience for most people to address a single hacky use-case. The JSON Utility exists so those overrides are possible. Link to comment Share on other sites More sharing options...
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