News
box
box
Events
box
box
Community
box
box

MacSpeech Forums and Discussion » Dictate » Extending Dictate

Tab + Return command to send gmail

(6 posts)
  • Started 6 months ago by jimrecht
  • Latest reply from abledoc

Tags:

  1. jimrecht
    Member

    This is maddening. All I want to do is use the Gmail keystroke shortcuts to send email!
    For the life of me, I can't figure out how to create a command that will do the following:

    send the keystrokes <tab> then <return>

    Can anyone help me with this?

    Posted 6 months ago #
  2. Yakker
    Member

    Hi jmrecht;

    I'm not sure I understand quite what you want. Saying "tab key" does create a tab press for me, and saying "new line" creates a return. I can use the "tab key" command to move from addressee field to subject field to the main text field, and "new line" (or "new paragraph") serves as a return (or a double return) consistently for me.

    I don't know a way to send the e-mail without pressing the Send button. But there very well may be one; my approach to Dictate is very vanilla and overall works very well for me without having to work out my own special commands.

    Hope this helps.

    Ray

    Posted 6 months ago #
  3. abledoc
    Member

    This would be the applescript to use:

    set _currentAppName to short name of (info for (path to frontmost application as alias))
    try
    	tell application "System Events"
    		tell process _currentAppName
    			key code 48
    			key code 36
    		end tell
    	end tell
    end try

    works for me on my machine, not sure if it works on gmail.
    MSD 1.5.8;MacOS 10.6.2; MBPro 15 processor 2.2 GHz Intel Core 2 Duo, 4GB 667 MHz; FilemakerProAdv11

    Posted 5 months ago #
  4. "Tabkey" will do <tab> and "Press OK" will press the Return or Enter key.

    "Press The Key xx" and "Press The Key Combo yy" also work when you have Gmail keyboard commands turned on. For example "Press The Key R" will reply when applicable (viewing a message).

    Please let us know how these suggestions work for you.

    Posted 5 months ago #
  5. jimrecht
    Member

    Here is what I ended up using:
    --
    tell application "MacSpeech Dictate Medical"
    set bundleID to (bundle identifier of current context)
    end tell
    set _currentAppName to short name of (info for (path to application id bundleID as alias))
    try
    tell application "MacSpeech Dictate Medical"
    keystroke " "
    end tell
    tell application "MacSpeech Dictate Medical"
    keystroke "
    "
    end tell
    end try
    --

    For "keystroke" I orginally entered \r (for return) and \t (for tab).

    Posted 5 months ago #
  6. abledoc
    Member

    Very interesting, thanks for feedback. I was not aware of the "\" option. Why did you decide to separate the keystroke commands instead of putting them into the same tell section?

    Posted 5 months ago #

RSS feed for this topic

Reply

You must log in to post.