Advanced Text Substitution

It is about this: Systempreferences/Language & Text/Text
I want to make some entries for 'text substitution' using a unix script.
Example:
defaults write -g NSUserReplacementItems -array-add '{ "on" = 1 ;"replace" = "ccm"; "with" = "cm³";}'
Unfortunately it is not working perfectly. The entry is not activated finally.
Responsible is ' "on" = 1 ' where 1 is supposed to be a number.
When I look inside the plist it turns out that the field for my '1' is of type String instead
The Manpage says: -int[eger]  Allows the user to specify an integer as the value for the given preference key.
I tried countless possibilities to cast 1 to a number without success.
Any clues?
Greetings Ronald

THANK YOU ! yes. This solved my problem.
— Though, I dont know how it could get turned off? I dont think I did that. Is it just off by default in 10.9? — Strange...
To Enable Text Replacement in Mail.
Mail.app — Edit menu > Substitutions > Text Replacement > ✓

Similar Messages

  • Boilerplate Fields and text substitution

    Hey,
    I'm new to LiveCycle Designer and would appreciate any help on this.
    Having used Output Designer for over a year I am used to using boilerplate text fields that allow text substitution with a block of text by using @fieldname. and within the data file to merge with compiled version of the template (.mdf) using ^global fieldname with the value to be merged.
    Can this functionality be replicated in LiveCycle Designer?? I've looked through the documentation but can't find it anywhere.
    Thanks in advance,
    James Gallagher

    Yes, the technology in LiveCycle Designer is called a floating field. In the midst of a text block you can put a floatinng field (put your cursor where you want the field to be and on the Insert menu choose Floating Field). This will add a field in the text block signified by {TextFieldName}. Now click on the heirarchy view select the field and set its properties. It is the binding that will map the inbound data to this field.

  • How can I add a text substitution for changing st in 1st to superscript?

    I would like to add text substitutions for 1st, 2nd, 3rd, etc. so the letters show up as superscript. I attempted to change the st, nd & rd to superscript in Pages and tried to paste it, but it simply changed it back to regular format. How can I go about changing this?
    Thank you in advance for your help!

    It only works in TextEdit consistently for me. Mail forgets as soon as I sent the message. Pages doesn't even have an Edit > Substitutions menu, nor it is there anything in the inspector.
    So I use [Typinator|http://www.ergonis.com/products/typinator>, which works system-wide, no fuss, and it's more powerful than the built-in text substitution. Another alternative is [Text Expander|http://smilesoftware.com/TextExpander>.
    If the free trails and price still can't help you decide, see this [discussion|http://www.macheist.com/forums/viewtopic.php?id=13544] comparing the two.
    Edit: I eat my words. Getting Typinator to substitute superscript is tricker than I thought.
    Message was edited by: Sam_P

  • Where is a full list of text substitutions/auto-correct?

    I use TextEdit a lot, and I love the Snow Leopard automatic text substitution feature, but I'm struggling to find where I can edit the list of what it corrects.
    When I type "teh", I love that it corrects it to "the". That's great.
    But I often use the abbreviation "ppl" for "people" when making notes, and under Snow Leopard, TextEdit keeps automatically correcting it to "pp.", which is not what I want.
    When I go to System Prefs > Language & Text > Text, I see a short list of substitutions, including "teh", "(c)", and "1/2", but I don't see anything like "ppl" or any of the other words it auto-corrects. Am I missing another list somewhere? Is there a way to change this behavior?
    Thanks in advance!

    Yeah, but the problem with adding your own customized sub is that it always doesn't work. At least in Mail. I tried to substitute a semicolon with an apostrophe. I accidentally hit the semicolon instead of the apostrophe all the time. (Instead of "can't" I type "can;t"). In a new Mail message with the customized sub enabled, hitting the semicolon key locks Mail up with the spinning beach ball. I have to force quit it every time. The canned subs work fine & not sure if another customized sub would work. This was one I was hoping to use. Guess not!

  • How can I make text substitutions learn the correct capitalization of an acronym?

    I love the text substitutions function in the Mac OS, and the auto grammar and spelling corrections are usually really useful, but there is one particular instance that is driving me insane. In my job, I end up using the acronym "TAs" (for "teaching assistants") all the time. Mac constantly autocorrects this to "Tas." I have tried adding "tas" to text substitutions in the settings and telling it to substitute "TAs," but it just autocorrects my substitution to "Tas." I have tried telling the OS to learn the spelling "TAs," but that hasn't worked either. I don't want to turn off capitalization correction altogether because I usually find it useful. Is there a way to fix this one word? The only workaround I have found is that it doesn't correct me when I pluralize with an apostrophe (as in "TA's"), but I am really not a fan of that.
    I am running Mavericks 10.9.5, if that helps.

    Hi Laura_mac !
    Does it depend on the application?
    Using Yosemite I added
    tas to Keyboard ====> Text
    so that TAs becomes TAs
    It worked via Safari 8.03
    via Pages and Numbers (3.5.2)
    It did not work in BBEdit
    nor Firefox
    nor Word
    If you do a lot of text substitution I found the following app quite helpful.  You can customize to a great degree.
    http://smilesoftware.com/TextExpander/index.html

  • Symbol and Text Substitution not working correctly

    Hello,
    in „Language & Text“ I have the following symbol and text substitutions enabled, which aren’t working in Pages version 5.1.1 (iMac 2011, Yosemite 10.10.1):
    „- - >“ (written without blank space between the characters) which should be substituted to „➜“.
    In Safari this works, but in Pages it isn’t working.
    Other substitutions work in Pages, for example:
    „! ! s s“ (written without blank space between characters) is substituted to „ẞ“ in Safari and Pages.
    Can somebody help me?

    In Pages v5.5.1 and Yosemite 10.10.1, I can reproduce the injected space issue resulting from your Keyboard > Text substitution for „-->” to „→” . Even if you remove one of the '-', Pages will still insert the space before the right arrow in the result. This is a bug.
    Fix: „..>” will produce the arrow without the injected space.

  • System Wide Text Substitutions

    I hope this is the right discussion group for this question. I just discovered that 10.6 has the ability for applications like Text Edit to use automatic text substitutions so that if you type "teh" by accident it will automatically change to "the". This is a great feature since any single "i" will become "I" and so on. You can progran whatever you like. In word processors this would include auto capitalization etc.
    Can anyone tell me why this feature does not work for Mail? I am certain more users use Mail than the y do Text Edit (a great programme by the way).
    Does Apple intend to extend this feature to Mail in the future. It's always been a problem for me since I use Outlook at work and it includes all those features as part of the Office thing (including auto capitilization). It would really help the workflow of Mail if one could automate some of this stuff.
    Thanks

    see this link how to enable it system wide. I use it in Mail. very handy.
    http://www.macosxhints.com/article.php?story=20090914081817955&query=text%2Brepl acement

  • Text substitution does not work on all apps

    Text substituiton feature works fine in Mac Mail, but does not work in Microsoft Word, excel and others.
    How can I fix this?

    Word and Excel do not support the system level text substitution routines. These work only with native apps like Mail, TextEdit and so forth. Some third-party apps can also tap into them.
    The workaround is simple:
    Preferences>AutoCorrect
    Word will allow you to create any number of text substitutions. They won't, though, interact with native apps like Mail.
    Microsoft Outlook, being more of a native OS X app, does support the system level text functions.

  • Text substitution does not work

    I cannot make the text substitution feature to work. Specifically, the only substitution that is being done, is the one for "On my way!" which was there by default. Anything else I add is simply ignored. This happens in all applications (TextEdit, Mail, etc). Yes, I have made sure that all the right boxes have been ticked, etc. Any help will be appreciated. I run 10.9.4.

    If it works in new user accounts, then most likely the hidden .GlobalPreferences.plist file (a hidden one residing in /username/Library/Preferences/) is corrupted. That's where text substitutions are stroed. The simplest thing to do is delete the borked user account, saving its data in a disk image, recreate the account, using the same username/password combination, logging into it, mounting the saved data disk image, and replace the items in the new account with the saved ones.
    27" i7 iMac (Mid 2011) refurb, OS X Mavericks (10.9.4), ML & SL, G4 450 MP w/Leopard, 9.2.2

  • There doesn't seem to be 'symbol and text substitution' on yosemite, i.e. cannot shorten 1/2 or 1/4 as in pages 09

    Has anyone found 'symbol and text substitution' on Pages 5 please?  On Pages 09 you could change the style of fractions i.e. 1/2, 1/4, 2/3 etc.  Thanks

    Text Substitution has moved out of the applications and into System Preferences > Keyboard Text. Fractions that are not present can be constructed from the special characters panel (Edit ▸ Special Characters…). Search on the word fraction.
    If you want to roll your own, then choose the gear selector in the upper left corner of the special characters toolbar, and customize list… . Choose Digits - All. Once Digits - All appears in your left category panel, select it, and then scroll down to the fraction components. These are the small numbers before and after the forward slash. Double-click to place in the With category of the Keyboard Text window.

  • Storage place for Symbol and Text Substitution

    I use Symbol and Text Substitution (Preferences - Language and Text) a lot and like to copy my
    definitions to another computer.
    Can anybody tell me where this information is stored?

    Found it: this info is stored in a hidden file ~/Library/Preferences/.GlobalPreferences

  • Symbol and Text Substitution Settings File-

    Hi,
    I have two computers with Snow Leopard, and I've made a [large] list of substitutions on one computer. I'd really rather not spend my time manually copying them over from each computer. I've tried looking for a settings files to copy, but I can't find it. The one for words I've chosen to have OS X 'learn' is found in the 'Spelling' folder (~/Library), but I can't find substitutions.
    Any help would be appreciated,
    Thanks.

    Go to System Preferences...
    - Language & Text
    - - Text
    Symbol and Text Substitution
    Hit the '+' icon bottom right to add your own.
    Otherwise, you should perhaps look to a 3rd party app, such as TypeIt4Me:
    http://www.macupdate.com/info.php/id/6908
    Be sure whatever you find is snow leopard compatible, of course.

  • Symbol and Text Substitution

    What applications are the Symbol and Text substitutions supposed to work in? Mine don't seem to work in any. Neither the original default ones now ones I have created myself work in a web browser, Mail, Word, etc.
    Any help to get them working would be appreciated.

    I just played with it a little bit before responding to this post.
    MS Excel 2008 it appears that only the copyright and registered symbol worked as listed in the 'Language & Test' preference. The trademark symbol is listed as only typing 'TM' (w/o quotes), however in Excel it required the () to work. Non of the fractions worked.
    In MS Word 2008 everything was the same except the fractions also worked.
    I couldn't get any of the 'custom' ones to function, like type !@ and get Hello.
    I then went to Textedit, and everything worked including the ones I created.
    So it looks like it is hit and miss as to what will work and what won't.

  • Text Substitutions in Pages

    Text Substitutions in Pages only seems to work when you are typing.  How can I make it work on pasted text as well ?
    If I take the same text and paste it into TextEdit (with the same substitutions installed in Text/Language Preferences) it immediately makes the substitutions.
    Annoying having to use two applications to get the result.

    Actually not quite right.  When I paste into TextEdit I have to run substitutions.  But in Pages there does not seem to be a way to do that on pre-existing text.

  • Text Substitution NOT system-wide!

    The text substitution functionality in 10.6 (changing "teh" into "the" etc. automatically) works like a charm in TextEdit but NOT in Mail, Pages, Numbers, Word etc. What am I missing? Pages and Numbers have their own section of text substitution (Preferences Menu - Auto Correction). Does one have to re-encode all the substitutions in these applications? Seems odd as this is presented in 10.6 as a system-wide service (System Preferences - Language and Text - Text)... Especially in Mail this saves a lot of time. Will have to revert to TextExpander... Anybody else bothered with this issue? Found a workaround?
    Looking forward to your views!
    Hendrik

    It works fine in Mail. I've been using it for some time.
    You have to turn it on, and there are no preferences for it like they are in TextEdit. Right click in the compose menu and enable it. It must be enabled separately for each application.
    You can do the same for Safari as well, when you are entering text in a text box, right click and enable it.

Maybe you are looking for