Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've actually had this problem over the years with both Windows and Mac OS. I have to believe there is an easy way to accomplish this, but for the life of me I haven't figured it out.

I have a string that I would like to pre-set and then have a single key (a function key?) on they keyboard paste that string whenever it is pressed. An example use case is that I have a conference call number that I often paste into e-mails and meeting invites. Instead of having to copy and paste it I'd much prefer it was just stored as a macro somewhere that could be easily pasted.

Is there built in functionality to do this or maybe an App that would get me there?


share|improve this question
There are lots of ways to accomplish this in Windows. VBScript or PowerShell should help, or better still AutoHotkey/AutoIt, or even paid apps such as PhraseExpress (which bills itself as "TextExpander for Windows"). – Karan Feb 12 '13 at 16:43

One option would be to use TextExpander, but it only supports snippets (like ,eml) and not shortcuts.

You could also create ~/Library/KeyBindings/ and save a property list like this as DefaultKeyBinding.dict:

    "~m" = (insertText:, ""); /* option-m */
    "^i" = {
        "m" = (insertText:, ""); /* control-i and m */
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .