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)
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)