Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Poor Man's Text Expander Apps
I use Tactor's ( regexp functionality to expand my custom text macros. For for example, I can define something simple like MYEMAIL => However regexp allows me to do more interesting things as well, like creating links: wiki:MyDocumentation =>

- lauch Tactor (it is free app)
- go to preferences -> regexp
- add regexp
you can use capture groups here, e.g. wiki:(w+)

- set the 'matched key' to ACT_TEXT - this will place the result into the clipboard
- set the 'matched key' to what the resulting text should be like
you can use the regexp substitution here, e.g. http://foobae/$1

- expanding is done by selecting the text macro in a text (any text field should work) and choosing 'Expand Selected Text' from the top bar menu.

This method is kind of technical to setup but very powerful. If one is not afraid of a bit of programming, it is possible to create full-blown macro scripts as well.

  • Currently 1.80 / 5
  You rated: 1 / 5 (5 votes cast)

Poor Man's Text Expander | 2 comments | Create New Account
Click here to return to the 'Poor Man's Text Expander' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Poor Man's Text Expander
Authored by: StrawHousePig on Jan 15, '14 06:02:25AM

Hmm, this could be done using plain AppleScript run from the script menu or Spotlight. Better using the clipboard since getting selected text is not always straight forward in AS.

Neat idea.

[ Reply to This | # ]
Poor Man's Text Expander
Authored by: tom_sep on Jan 22, '14 12:34:29AM

Using Tactor rather then Script menu for this, makes it work virtually in any application that supports copy & paste (e.g. non-cocoa apps like java or XWindows-based ones).

[ Reply to This | # ]