Todd: The construct in AppleScript is as follows: repeat 10 times typekey "up arrow" end repeat Best Regards, Chuck Rogers, Chief Evangelist MacSpeech, Inc. On Apr 25, 2006, at 12:51 PM, tscheresky at micron.com wrote: > Thanks Joe... I think I can roll my own, but I would like a suggestion > or insight into how you implemented the "Up 10 Lines" macro. Did > you do > it by repeating the following statement 10 times between try/end try: > > typeKey "up arrow" > > or is there a construct to tell AppleScript to execute the > statement 10 > times? Thanks... > > Todd > > -----Original Message----- > From: macvoice-bounces at listserver.themacintoshguy.com > [mailto:macvoice-bounces at listserver.themacintoshguy.com] On Behalf Of > Joseph Senecal > Sent: Monday, April 24, 2006 10:30 PM > To: A place to discuss speech recognition on Macintosh. > Subject: Re: [MV] Question for iListen veterans... > > Todd, > > What I did was create a collection of macros: > Up One Line, Up Two Lines, Up Three Lines, Up Four Lines, Up Five > Lines, and Up Ten Lines. > > I picked these numbers because that's what an older Dictation product > (Power Secretary) did. I didn't add more because just doing these 6 > commands was tedious enough when multiplied by the number of cursor > control commands I wanted. > > I have these all in a command set that I could send anyone who's > interested. I'll need to warn you though, you will probably have > problems loading the set and some of the commands will need to be > fixed by hand. At least that's what happens everytime I transfer the > set between machines. > > Joe Senecal > > On Apr 23, 2006, at 8:15 PM, Chuck Rogers wrote: > >> Todd (and everyone else): >> >> What you are trying to do is use a variable in a command name. >> Unfortunately, with iListen 1.6.8 or earlier, you cannot have a >> variable in a command name, so there is no way to do what you want >> to do. There may be something that would do something similar in a >> future version of iListen, but I have no other information at this >> time. >> >> >> Best Regards, >> >> Chuck Rogers, Chief Evangelist >> MacSpeech, Inc. >> >> >> On Apr 23, 2006, at 9:57 PM, tscheresky at micron.com wrote: >> >>> I want to write a macro for iListen 1.6.8 which will allow me to >>> press up arrow 1 through 40 times, depending on number I say when >>> issuing the command. >>> >>> I know that the code for "up arrow one" would be: >>> >>> try >>> typeKey "up arrow" >>> end try >>> >>> How would I modify this command to accept numbers 1 through 40? >>> >>> Thanks... >>> >>> Todd >>> _______________________________________________ >>> MacVoice mailing list >>> MacVoice at listserver.themacintoshguy.com >>> http://listserver.themacintoshguy.com/mailman/listinfo/macvoice >>> >>> Listmom is trying to clean out his closets! Vintage Mac and random >>> stuff: >>> http://search.ebay.com/_W0QQsassZmacguy1984 >> >> _______________________________________________ >> MacVoice mailing list >> MacVoice at listserver.themacintoshguy.com >> http://listserver.themacintoshguy.com/mailman/listinfo/macvoice >> >> Listmom is trying to clean out his closets! Vintage Mac and random >> stuff: >> http://search.ebay.com/_W0QQsassZmacguy1984 > > _______________________________________________ > MacVoice mailing list > MacVoice at listserver.themacintoshguy.com > http://listserver.themacintoshguy.com/mailman/listinfo/macvoice > > Listmom is trying to clean out his closets! Vintage Mac and random > stuff: > http://search.ebay.com/_W0QQsassZmacguy1984 > _______________________________________________ > MacVoice mailing list > MacVoice at listserver.themacintoshguy.com > http://listserver.themacintoshguy.com/mailman/listinfo/macvoice > > Listmom is trying to clean out his closets! Vintage Mac and random > stuff: > http://search.ebay.com/_W0QQsassZmacguy1984