I am doing this, holding down the shift button with the other one until the line is longer. This is a pain in the rear.
I GUESS THERE'S NO WAY TO ADD A HORIZONTAL LINE TO MY EMAILS WITHOUT THIS INCONVENIENCE??
ANYONE??
The main phases of a solution are:
1. Make a Service in Automator that types '_' your desired number of times.
2. Assign a Keyboard Shortcut to the Service using System Preferences.
3. Test it.
Phase 1 : Make a Service in Automator.
- Launch Automator.app.
- Choose "Service" from the "Choose a type for your document" dialog.
- Add a "Run AppleScript" action to the workflow.
- Paste the following AppleScript into the action:
Code:
tell app "System Events" to keystroke "_______________________"
The pasted-in AppleScript should completely replace the template AppleScript that automatically appears in the "Run AppleScript" action. That means you click in the box of the action, choose Select All from the Edit menu (⌘A), then delete everything.
Optional: you can increase the length of the __ string.
- At the top of the workflow, set the popups to show:
Service receives no input in any application
- Save the Service (⌘S), and give it a name.
Phase 2 : Assign a Keyboard Shortcut in System Preferences
- Launch System Preferences.
- Choose the Keyboard pane, then click the Keyboard Shortcuts tab.
- Two side-by-side lists will appear.
- Choose Services in the left-hand list. The right-hand list will show the available Services.
- Scroll down the list until you see the name you gave your Service. It will probably be under the General heading.
- Ensure your service's checkbox is checked.
- Click its "add shortcut" button, then press your desired key combination to assign it a keyboard shortcut (the key combination must be unique).
Phase 3 : Test it
- Launch Mail.app.
- Click the Mail menu, then move down to the Services hierarchical menu.
- Does your named Service appear in the menu items?
- Does your named Service have its assigned keyboard shortcut?
- Create a new message (⌘N).
- Click in the body of the new empty message.
- Press the keyboard shortcut.
- Is the series of _'s correctly added to the message?
I have tested the above on 10.8.4 Mtn Lion. If you're using a different OS version, tell us what it is. The Keyboard Shortcuts pane in particular may vary.
For more details on Services, follow a tutorial on how to make Services in Automator.
http://www.macosxautomation.com/services/learn/index.html
If you have a problem or a question with anything above, post a reply and identify the exact step where you have a problem or question. If there's an error message of any kind at any point, post the complete exact text of the message, and identify the specific step where it occurs.
P.S. If your '_' key is auto-repeating too slow, or not at all, change it in:
System Preferences > Keyboard pane > Keyboard tab
Slider : Key Repeat ( off slow - - - fast )
Slider : Delay Until Repeat ( long - - - short )