Problem Scripting Photoshop CS 2 in DNS Pro 9.5

I've run into a problem scripting Photoshop CS 2 in DNS Pro 9.5. The first time I utter a command, it's recognized and passed on to Photoshop, which responds. The second time I utter a command, it's not recognized -- DNS either interprets it as text or, if I switch into Command mode or hold down the Control-key, I get the classic <???>.

Photoshop is a fairly "flat" application -- there is a main window and accompanying menu bar, and then options on each of the menus. I voice-enabled virtually all of these, using either the native combo keystroke and/or a series of keystrokes to drop the menu, traverse to the option, and then press it. The first time I issue a command, it works. After that, no command works. But if I say the combo keystroke which is the native trigger for a command, say "press function eight", that will work and then my next voice-enabled command will work. Then of course the next voice-enabled command will not work unless I issue a native combo keystroke command.

The only variations I tried were DVC versus Verbal Basic scripts, but this didn't affect the results.

Any questions, suggestions, comments, or what-have-you would be appreciated.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Chuck Runquist's picture

BruceCyr wrote: I've run

BruceCyr wrote:

I've run into a problem scripting Photoshop CS 2 in DNS Pro 9.5. The first time I utter a command, it's recognized and passed on to Photoshop, which responds. The second time I utter a command, it's not recognized -- DNS either interprets it as text or, if I switch into Command mode or hold down the Control-key, I get the classic <???>.

Photoshop is a fairly "flat" application -- there is a main window and accompanying menu bar, and then options on each of the menus. I voice-enabled virtually all of these, using either the native combo keystroke and/or a series of keystrokes to drop the menu, traverse to the option, and then press it. The first time I issue a command, it works. After that, no command works. But if I say the combo keystroke which is the native trigger for a command, say "press function eight", that will work and then my next voice-enabled command will work. Then of course the next voice-enabled command will not work unless I issue a native combo keystroke command.

The only variations I tried were DVC versus Verbal Basic scripts, but this didn't affect the results.

Any questions, suggestions, comments, or what-have-you would be appreciated.

Yes, don't expect DNS to work well with Adobe products. Adobe likes to interspersed almost everything that they create as far as applications are concerned with Java and JavaScript. When you bump into one of these, scripting and Select-and-Say fall apart. This is Adobe's fault. They don't like to conform to Microsoft technical specifications for Windows applications. They also don't like to comply with SAPI requirements and sometimes even with MSAA. Intuit (Quicken and QuickBooks) are two others.

Chuck Runquist
Former Dragon NaturallySpeaking SDK & Senior Technical Solutions PM for DNS

"Problems cannot be solved by the same level of thinking that created them." – Albert Einstein

So it's Java/Java Script

So it's Java/Java Script then. I assume that's the same problem with Intuit?

That's why I asked my general question regarding different scripting tools in a companion post:

http://www.speechcomputing.com/node/1716

Comment viewing options

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




view recent posts