Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!

Toggle Character Palette and Keyboard Viewer on/off Apps
This hint will let you toggle the state of the Character Palette and Keyboard Viewer via AppleScript and a hot key -- activate and hide the panels just by pressing their assigned hot keys. I'll use Proxi for the hot key assignments, but the AppleScripts should work with any such program -- Spark, Keyboard Maestro, Quickeys, Butler, etc. (This hint is similar to this earlier hint, but provides a toggle functionality and works in 10.5.)

Install Proxi, then open the Proxi Editor. Choose Insert Trigger » Hotkey Monitor from the Action menu beneath the Triggers portion of the Proxi Editor window (or drag it in there from the Components window). Replace the selected text (Hotkey Monitor) in the new Trigger with Toggle Character Palette. Click Set in the right half of the Editor window. Press Control-~ (tilde), or the key combination of your choice, to set the trigger's keyboard shortcut.

Choose Insert Task » AppleScript from the Action menu beneath the Tasks portion of the Proxi Editor window. (Double-click AppleScript in the Tasks portion of the window to rename it if you like.) Click Run Custom AppleScript in the right half of the Editor window. Copy and paste the following code into the Run Custom AppleScript text field: Click Check Syntax to be sure the correct script source was pasted. Press the key combination you chose a couple of times to test the functionality. Hide Proxi by holding the Option key and clicking the desktop. Read on for the Keyboard Viewer version.

Follow the same steps as above to create a new Hotkey Monitor trigger in Proxi, name it Toggle Keybaord Viewer, assign a different keyboard shortcut, and set its custom AppleScript code to this: [robg adds: These both worked as described in my testing, using Butler as the vehicle. The original source code for both scripts can be found on the author's site.]
    •    
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[9,054 views]  

Toggle Character Palette and Keyboard Viewer on/off | 11 comments | Create New Account
Click here to return to the 'Toggle Character Palette and Keyboard Viewer on/off' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Toggle Character Palette and Keyboard Viewer on/off
Authored by: derekJAB on Wed, Apr 2 2008 at 9:31AM PDT
What is the advantage over simply sticking the Character Palette and Keyboard Viewer in the menu bar (System Preferences/International/Input Menu)?


[ Reply to This | # ]
Toggle Character Palette and Keyboard Viewer on/off
Authored by: drtofu on Wed, Apr 2 2008 at 10:45AM PDT
Because it takes up space. I'd use this script for reference, but my menubar's already cluttered.

[ Reply to This | # ]
Use KeyViewer - MUCH easier & FREE!
Authored by: Ronald Lanham on Wed, Apr 2 2008 at 11:49AM PDT
Use KeyViewer
http://www.versiontracker.com/dyn/moreinfo/macosx/23422
It's much easier and free.
Just put it in the Dock or one of your menus so you won't have to clutter up your menubar.

[ Reply to This | # ]
Toggle Character Palette and Keyboard Viewer on/off
Authored by: Stormchild on Wed, Apr 2 2008 at 1:33PM PDT
No offense, but this is pretty lame.

[ Reply to This | # ]
Toggle Character Palette and Keyboard Viewer on/off
Authored by: Axlin on Wed, Apr 2 2008 at 2:46PM PDT
How is this hint lame? It's awesome. This is handy because:
1. You don't need anything cluttering up your menu bar
2. You can have near-instant access to your character palette and keyboard viewer with a simple, global hotkey
3. Using AppleScript and an trigger app of your choice means no extra wasted sources, such as the KeyViewer program that somebody mentioned that <i>only</i> toggles the keyboard viewer. These apps are much, much more powerful. If you don't make use of them, then that's your loss.

If you guys don't want to utilize this tip, then don't. But don't berate the person that posted it just because you don't understand it.

Great tip, llee.

[ Reply to This | # ]
Or use LaunchBar (or similars)
Authored by: elmimmo on Wed, Apr 2 2008 at 4:07PM PDT
You could also add those two items to the custom items list at LaunchBar.

If you are already using a launcher like that, you still accomplish uncluttered desktop + keyboard access.

[ Reply to This | # ]
Or use LaunchBar (or similars)
Authored by: guns on Wed, Apr 2 2008 at 7:58PM PDT
Using Quicksilver:

If you've got "Find All Applications" checked in your catalog, Quicksilver already has 'CharPaletteServer.app' and 'KeyboardViewerServer.app' in memory. Just search for those strings + enter.

I love the keyboard viewer especially. Makes learning a new keyboard layout extremely easy.

[ Reply to This | # ]
Toggle Character Palette and Keyboard Viewer on/off
Authored by: Sesquipedalian on Thu, Apr 3 2008 at 6:52AM PDT
Quicksilver users can install the Extra Scripts plugin to install, among many other things, two scripts that do this same thing.

Just to save people time and avoid unnecessary duplication.

[ Reply to This | # ]
Toggle Character Palette and Keyboard Viewer on/off
Authored by: guns on Fri, Apr 4 2008 at 2:31PM PDT
Unfortunately, the scripts don't work on Leopard (for me). Hence my comment above.

[ Reply to This | # ]
Universal Shortcut is already in 10.5 by default
Authored by: QuarterSwede on Sat, Apr 5 2008 at 8:51PM PDT
I'm not sure about the Keyboard Viewer but in at least in 10.5 there is an almost universal keyboard shortcut to view the Character Palette. ⌥⌘T for "Special Characters..."

[ Reply to This | # ]
Toggle Character Palette and Keyboard Viewer on/off
Authored by: encro on Wed, Apr 9 2008 at 8:05PM PDT
I wrote these in Cocoa for my own personal use a while back.
They simply launch the relevant app via the bundle identifier and can be run from Spotlight or the Dock.

CharacterPaletteViewer
http://encropowered.com/viewers/CharacterPaletteViewer.zip
5KB

KeyboardViewer
http://encropowered.com/viewers/KeyboardViewer.zip
5KB

There are no icons but if anyone wants to provide some that would be great :)

Steve

---
Steve

[ Reply to This | # ]