Jump to content

key combo count support use variable or query


Alan He

Recommended Posts

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 by vitor
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...