forcing TCIM to update its cache after changing its properties

I regularly use the cangjie and pinyin Chinese input methods. Because of their characteristics, I need different preference settings for each of these. In particular, I need to turn 'Dynamic Prompt' and 'Show Input Keys' on for cangjie and off for pinyin. Unfortunately, the Dynamic Prompt property is not readily available from the input menu. You are required to open the TCIM prefs window which can sometimes require a wait of 15 seconds or more.

While fiddling around today, I discovered that these properties are recorded in a preference file in plist format. I also discovered that they can be changed via the System Events application's Property List Suite. Using AppleScript, I can now change the properties very easily. I can even change my preferred/active input method; ie, cangjie or pinyin.

Unfortunately, it doesn't work because the TCIM system caches the preference settings even when switching between Latin and Chinese input methods. The only way to get TCIM to see the changes is to log out and in again. If you open the TCIM prefs window, it loads settings from the cache, not from the prefs file.

So my question: does anyone know of a command that will force TCIM to refresh its cached prefs from the prefs file? With such a command, I could set the properties in the plist file and then get TCIM to load them.

More than a year ago, I asked Apple to make the Dynamic Prompt property available in the input menu where Show Input Keys and Associated Words are already available. No response so far.

(I'd also like to see a Finder that can execute --entire contents of alias "a multi-level nested folder with a few thousand items"-- in a few minutes instead of close to 10 hours but that's probably asking for a miracle. Maybe in Leopard?)

regards,
Gregory

iMac 17" 1GHz 1GB Mac OS X (10.4.5)

Posted on Mar 28, 2006 9:19 AM

Reply
2 replies

Mar 28, 2006 6:32 PM in response to Gregory Rivers

You probably need to restart the process by sending it a HUP signal - that's the normal way of telling a process to reload its configuration.

The issue, of course, is knowing which process to restart.

I don't know if it's because I'm not running with any Chinese input methods enabled, but the only likely candidate I see may be ATSServer (related to Apple Text Services).

You can try sending HUP to ATServer to see if that helps:

do shell script "killall -HUP ATSServer" with administrator privileges

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

forcing TCIM to update its cache after changing its properties

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.