Programmatically switch an input method on Mavericks

Hello,
I'm having a problem creating a program that switches an input method to a specified one. I have been doing some research for a while and have found this answer on the support community, but it doesn't seem to work on Mavericks: https://discussions.apple.com/message/18719398. The indicator switches normally but it doesn't enable the IM (adding TISEnableInputMethod doesn't help). The IM gets enabled only when I switch out of the document and then back in.
The question on stackoverflow doesn't get any answers too: http://stackoverflow.com/questions/22885767/how-to-programmatically-switch-an-in put-method-on-os-x
Did I hit a bug in the OS or is it something that I'm missing?

Hello
In order to select "Hiragana" text input source in "Kotoeri" module, you'd need to first enable Kotoeri and then select Hiragana. Something like this (provided the textinputsource executable is in the current direcory):
#!/bin/bash
./textinputsource -e "Kotoeri" -s "Hiragana"
Similarly, in order to select "Pinyin - Simplified" text input source in "Chinese - Simplified" module, use the utility like this:
#!/bin/bash
./textinputsource -e "Chinese - Simplified" -s "Pinyin - Simplified"
For those text input sources which are not nested in module, you may simply select it like this:
#!/bin/bash
./textinputsource  -s "Dvorak"
Tested under 10.6.8. Don't know about 10.9.
Good luck,
H

Similar Messages

  • Uim won't switch input methods[SOLVED]

    I'm probably just making a simple mistake but I'm having trouble with uim. I followed the instructions on the wiki about inputting Japanese with uim and I set mozc as the default input method. Yet when I use the keyboard shortcuts to try to switch.... Well that was weird. As I was typing this message I was suddenly given a list of Kanji to select. When I hit backspace it was gone and is now apparently not coming back. Well what I was going to say before that strange event was: I use the keyboard shortcuts but input doesn't change. Anyone have any ideas on what might be going on, what mistake I may have made?
    EDIT: You know what? Now it's working. ほらほら! Unfortunately it doesn't work in anything but my browser. Pidgin, Libre-Office, Skype... none of them want to work with it.
    EDIT 2: And now, for no reason at all, it ONLY works in Pidgin, not in anything else! Or it did until I typed this line, then I randomly started typing in 日本語 again. Then, when I closed out the preference panel, it stopped working entirely. I've got the preferences open again and it STILL won't work.
    EDIT 3: I'm just marking this as solved, I gave up and switched to ibus, it seems to work.
    Last edited by Axalon (2014-05-14 23:45:20)

    Exactly which troubleshooting steps have you tried?
    Does the machine get stuck at that point or does it power off?
    Do you have the original install discs?
    ~Lyssa

  • Bootcamp, Windows 7: EN option not showing up in input method selector

    Hi,
    I added a Japanese and a German input method on my Bootcamp Windows 7 install.
    For some reason only JP (Japanese) and DE (German) are shown as options in the input method selector - but no EN, which should be the default...
    In the settings the EN entry is shown however:
      EN English (United States)
        +-+ Keyboard
            + United States (Apple)
      JP Japanese
        +-+ Keyboard
            + Microsoft IME
      German (Germany)
        +-+ Keyboard
            + German (Apple)
    When starting up, the German keyboard is activated and there is no way to switch back to the English one.
    When adding another English keyboard, US for example, an EN option is shown - but it selects the normal US keyboard and not the "United States (Apple)" one...
    Any idea how to solve the problem?
    Thanks, Dietrich

    Hi andrum99,
    Could you please explain a bit for the system compression in cleanmgr?
    I only seeing the option under the drive properties for Compress this drive to save disk space, and I never heard of the new '' system compression".
    Best regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How to STOP OS X from automatically changing between language input methods

    I want to know if there is a way in OS X Leopard to stop the system from automatically changing the language input method. I use English and Japanese on my computer, but this would apply to anyone using more than one input method.
    For example, when I click on a Japanese-language file, the system automatically changes input to Kotoeri (the Japanese-language input method). When I then click on an English-language file it usually, but not always, changes back to English input. But I almost never want to TYPE in Japanese. I just need to be able to read Japanese and to cut and paste from Japanese language files. It is very annoying when I start typing in an English-language file and find the input method has been changed to kotoeri without me realizing it—everything comes out in meaningless Japanese. When I want to type in Japanese, I want to manually change to the Japanese input system. That is, I want English to always be the default input method even if I am manipulating Japanese-language files.
    So, I’m wondering if there’s a way to set the computer so that it never AUTOMATICALLY switches between the input methods. I want to be able to switch only manually. In the old days of System 7, 8, and 9, there was a third-party control panel you could get that would do this (I think it was called Stay There!) and I don't remember this being a problem in Tiger or earlier versions of OS X. Is anyone aware of any way to do this in Leopard?
    Thank you!
    Colin

    Well, I do have it set that way, and I can look up there to see where I am, but in the work I do time is critical and I move back and forth between the two languages frequently. It is really a pain and a waste of time to have to look and make a change that should be unnecessary. The problem is not so much that I don't know where I am. It's that I don't want to ever have to think I MIGHT be in anything but English input unless I specifically want to be. In other words, I need to be able to forget about this problem even being a possibility.
    Message was edited by: Colin Talcroft

  • How can I keep my original keyboard mapping in different input methods?

    Hi!
    i have a question about my keyboard mapping. my powerbook has a german keyboard. and i switch frequently my input methods between german and simplified chinese(ITABC), which was all fine. but after upgrading to Leopard, when i switch to ITABC input method, my keyboard mapping changed along with this input method to chinese keyboard mapping! which annoys me a lot! this did not happen before when i was in Tiger!
    could someone please tell me how to keep my original keyboard mapping (at least the alphabets) when i switch to ITABC?
    Thanks a lot!

    in german input, the key "Y" and "Z" are opposite comparing with normal english keyboard. and in chinese input method, the "y" and "z" are mapped just as normal english keyboard.
    what happens now is, in ITABC input method, "y" and "z" are mapped as normal english keyboard, which is not like that before when i was using tiger.
    Thanks for the info! You should definitely ask about this on the Chinese-Mac list. Keyboard mapping with the Apple Chinese IM's has long been a problem, and is one reason many people are moving to QIM:
    http://www.yale.edu/chinesemac/pages/input_methods.html#other
    I suspect something has changed in the Chinese IM with Leopard to mess this up for you, and it may not be fixable.

  • Input Methods changing without permission

    Hi everybody.
    I use a personalized keyboard mapping. I've created it with Ukelele, put it into ~/Library/Keyboard Layouts and selected it in the System Preferences (so only my account can use this layout). Perfect.
    Now, the issues:
    If I use the “fast user switching” in the menu bar, my own Input Method is reverted to the default French input method. I think that is normal for this window, but if I cancel the user switching, the default French input method remains and I have to manually switch back to my personalized keyboard layout.
    The same thing happens when I play “Warcraft III”: the input method is changed to the default French layout as soon as the game is launched. How can I change this behavior ?

    http://parahuman.org/journal/2005/07/changing-mac-os-xs-default-keyboard.html#11 2420770366273168
    This seems very interesting. Haven't tried it yet but I'm about to.
    Also see here:
    http://www.betalogue.com/2008/03/12/mac-os-x-105-leopard-fast-user-switching-des elects-input-method/

  • "Choose input method" is behind keyboard so I can't use it

    I just upgraded to Kit Kat on my Galaxy S4, and I can no longer pick my preferred keyboard because the "choose input method" dialog does not close the keyboard when it opens like it used to, and so half of the dialog is hidden behind the keyboard.  Normally I would hit the back button to close the keyboard, except this closes the input selector dialog instead.  How do I change my active keyboard?

    OK, I can change the default keyboard from the settings panel, but that means I have to go into settings every time I need to change it (and I often switch back and forth between a few of them depending on what app I'm using because some keyboards are better suited for different tasks).  So the question then becomes is Verizon aware of this problem and how do I make sure they are so it gets fixed in the next update? (and how long before that update?)

  • Plz help!  Multi-byte input method and JPasswordField in java 1.4

    Hello
    I got JTextField and JPasswordField in one dialog. I enter multi-byte text into text field, using Microsoft IME, switch focus into password text field without changing input method, and now all text entered in password text field appear in previous visited text field. This issue actual only in java 1.4 and disappear in java 1.5. Is anyone now what can i do to fix it in java 1.4? thanks!

    kajbj wrote:
    Stromberg wrote:
    VishalKothari wrote:
    Help me out regarding datatype of 'x' in the switch(x) statement. Is it only byte and char?any primitive typeNo, not boolean, double or float.oooops

  • Input source selector does not show when switching the input source

    Hi,
    I'm running OS X Mavericks on my late-2013 15" MacBook Pro with Retina Display. I set a key combinations in Keyboard section in System Preferences to "Select the previous input source" and "Select next source in Input menu".
    In my previous MacBook, whenever I use the shortcut to switch my input source, there's a selector (as shown below) appear in the middle of the screen showing what input source I am selecting. Strangely, on this new MacBook, it just doesn't show it.
    I thought that this is a change in Mavericks, but a few days ago, I install Mavericks on my old MacBook and the selector does appear when I am switching the input source using the shortcut. I have search throught all the setting in System Preferences, but there is no option to show or hide the Input source selector when switching the input source. Am I the only one? Am I missing something? Is there any fix?
    Thanks in advance.

    Try troubleshooting the adapter > Apple Portables: Troubleshooting MagSafe adapters

  • Input Methods

    Dear Developers!
    I would like to propose you to help me..
    I�m writing multilingual, platform independed lingual program (editor).
    My question is:
    I use Windows XP (for example) and use Ctrl+Shift combination to switch between system input languages.
    I use the code to select appropriate Input Method in my program:
    public void switchTo(Locale locale) {
    java.awt.im.InputContext ic = this. getInputContext ();
    ic.selectInputMethod (locale);
    It works!
    So� my problem is:
    I have to use combination like Ctrl+L to invoke switchTo method. But I want to use for example Ctrl+Shift.
    I have created my own languages and layouts and want my program use oly its � ignoring systems one. (I implemented Java Inpt Method Framework interfaces like: java.awt.im.spi.InputMethodDescriptor, java.awt.im.spi.InputMethod
    How override Ctrl+Shift combination to switch between my extended languages (Input Methods) ? I don�t want my program react to standard language switching and use standard Input Method. When I press ctrl+shift I want to switch only between extended languages. Standard language switching should be suppressed absolutely (ignoring).
    Now if I use, for example, my English (extended input method) language, and press ctr+shift I switch to another language that, may be is typing incorrect way (double letters and so on).

    Doubleposted
    http://forum.java.sun.com/thread.jspa?threadID=772323

  • I can't type with Chinese Input Methods in Mail and Notes

    Today I suddenly can't type/input any word or character in Mail and Notes
    when the input method switches to any Chinese input method like Zhuyin, Yahoo KeyKey and Bopomofo.
    Even the cursor won't move when I press the " ↑↓←→"
    The keyboard just doesn't work from " ` " to "→" when it comes to Chinese input methods.
    However,
    the keyboard works well as soon as I switch to English input method and I can type English in Mail and Notes.
    I can type with any Chinese input methods in Chrome, TextEdit, Reminder, iPhoto, Contacts,......etc..
    Is there something wrong with Mail and Notes?
    Could anyone help me solve the problem?
    Thank you!

    Thank you, Tom.
    I have posted my issue there and hope for the best
    btw,
    I had the same problem (cannot input any word and move the cursor with Chinese input methods) in Evernote.
    Evernote Support helped me solve it.
    Here is how it works (for Evernote only).
    Ticket # 16051-XXXXX
    We believe that reinstalling the latest Mac version may address the issue that you reported. Please perform the following steps:
    Quit Evernote from the elephant icon in the Menu Bar
    Drag the Evernote application to the system Trash
    Reboot your Mac
    Download and install the latest version of the Mac client:
    http://www.evernote.com/about/download/get.php?file=EvernoteMac
    When you open the download, make sure to drag the Evernote icon into the Applications folder instead of running it from within the installer package.
    Eject the disk image and delete the installer file before you runEvernote.
    Let us know how this works for you.
    Thank you.
    Tania

  • Im trying to watch movies from my macbook pro to my new vizio, but when I connect the minidisplayport to HDMI cable to input 2, and switch the input from my remote to that input, nothing happens.  What am I doing wrong?

    I am trying to watch movies from my macbook pro (2010) on my new vizio tv.  I connected the minidisplayport to HDMI cable (bought from the apple store) and switched the input to the right input but nothing happens. What am I doing wrong?

    Hi T,
    Open Sys Prefs > Displays and check the settings there.

  • Could not find Simplified Chinese input method when using FormsCentral

    Hi
    When I creating files using FormsCentral, I could not find the input method of Simplified Chinese, therefore, the document I created look strange. The font is not what I wanted but I really could not find Simplified Chinese to edit the document.  Could anyone please show me how should I do it or where I can download the font pack?

    We currently do not support Chinese forms.
    Randy

  • On iOS7, Korean Language Input Method with serious error.

    Korean Input Method for iOS7 has serious problems with bluetooth keyboard.
    It has absolutely incorrect state transition for the keyboard typings.
    Keyboard input and cursor moving are independently acting.
    On the word processing apps, when the line changing occurs while typing, error comes on the first word.
    It looks like to have very poor performance while typing.
    clearing last status of input and transiting to a new state to a new word-syllable are not working properly.
    Input method on iOS5 is much stable and better than on iOS7.
    iOS7 Korean Input Method really makes me annoying.

    For Apple to see this, you need to repost it at
    http://www.apple.com/feedback

  • PO creation using LSMW through batch input method

    Hi, I am new to working with LSMW and i have completed a project for creating purchase orders using the direct data input method. I need to do the same using batch input method, however in the maintain structure relationship step, it is only allowing me to assign one structure to the recording that i have done, however in po creation we need separate (nested) structure for header and line item, could anybody help me past this please?

    Hi Rudra!
    OK, now you just know, why you have only one line, not multiple PO item lines. To get a dynamic number of items, you need a complex program - just like standard direct input.
    If you need a field, which is not part of this program, don't try to write your own program for batch input - it's just to much work before you have a good result.
    You can use Bapi method instead with BAPI_PO_CREATE1. This can handle a lot of fields and there is some documentation available how to fill the Bapi.
    If this looks to complicated in the first moment, think about creation of POs via direct input and a small batch recording to change your additional field(s) afterwards. (You can select EKPO table to generate list of 'wrong' migrated orders for input in LSMW.) Use field 'Item' in the bottom of ME22 to position your desired line in first screen line, just change one PO-line after one other (every time a 'save' -> no problem with different number of lines / PO).
    Regards,
    Christian

Maybe you are looking for

  • Want to generate a report for displaying the top 30 revenue generating regn

    Hi Team I was trying to generate top 30 revenue generating regions using " Edit Formula " option (Ofcouse there are other methods to do it , but i was trying out with this one ). The scenario is : - I have selected four columns i.e Year , Region , Pr

  • Example Basicresponse: HTTP Error 403 - Forbidden

    Hi, i installed the developer edition of ocms. The eclipse plugin works fine. I was able to deploy the "thirdpartycallcontrol" and to access it via http://localhost:8888/tpcc. BUT the basicresponse example does not work. I can deploy it but on http:/

  • Embed pdf as part of jsf page

    hi, i want to embed a pdf as part of a jsf page. any suggestions how to do this?

  • I have a problem when I apply patch 12539000

    Hi all, I need to upgrade my GI and RDBMS from 11.2.0.2 to 11.2.0.3 on Linux RedHat I am following this DOC: Oracle® Grid Infrastructure Installation Guide (E22489-04) - (F - How to Upgrade to Oracle Grid Infrastructure 11g Release 2). When I run Clu

  • Cursor selection not working-bu​g?

    hi i've the following problem. if u can find out please try the same created 3 cursors for an XY graph select one or many cursors from the legend. try to move the cursors using the '' tool. repeat this again the cursor selection is unpredictable!! Re