Too Many Twos

Like everyone who writes scripts, I have a command like "[Arrow_direction] 1_500". Recently I've been working on a project where I frequently have to pick the 22nd item on a list.* That's when I discovered that "22" and "32" aren't being interpreted as numbers but rather as text. Apparently 42 and higher is not that much of a problem, although sometimes when I say one of these higher *2's, I can see the results box start to spell the number out as text. But then, as DNS apparently encounters my global command, you can see it re-interpret and transcribe what I said as a number!

I'm not really asking a question, although if you know enough about how DNS works to suggest a solution (as opposed to a workaround, which even I can figure out) then feel free to astound us all Smiling

Bruce

*Unfortunately it's one of those Java-based applications where a more direct or general script solution doesn't seem feasible Sad

PS: As I was writing this I fantasized that it might be neat to have a way to slow down the results box so that you can see what it's doing in detail -- but since this is bass ackwards of what a dictator normally desires, it's just one of those fantasies that are scarcely worth mentioning.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

one idea

Hold down the Control key when you say "down 22". Turns out I have the same problem, but never knew it.

Another option might be to rewrite your command, using the old written/spoken form of lists, like
21\twenty one
22\twenty two
and so on.
But who has time to do that?

Written/spoken forms may be

Written/spoken forms may be the thing to do when you don't have so many values -- I use scaling beyond 100, but that's still a lot of work. Control key and Command mode don't work -- the commands aren't recognized then!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.




view recent posts