Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Control Exposé via AppleScript and voice System
When I realized the power of AppleScript, I created this script that launches and controls Exposé. It could also be used to control more things like Safari, a word processor, or the Finder.

[robg adds: In order to compile this script, you'll need to tell Script Editor where it can find SpeechRecongitionServer. Thanks to locate, I found it relatively quickly; it's located on this path:

/System -> Library -> Frameworks -> Carbon.framework -> Versions -> A -> Frameworks -> SpeechRecognition.framework -> Versions -> A -> Resources

In Script Editor when it asks for the location of the app, click Browse, then hit Shift-Command-G (Go to Folder), and enter the above path. The quickest way to do that is to type /Sys, then press the Tab key, then type Lib, press Tab, etc. Each time you press Tab, the directory will auto-complete. The "hack Exposé" and "unhack Exposé" options in the script implement this hack to change the way Exposé's F11 (Show Desktop) function works.]
    •    
  • Currently 1.50 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[8,640 views]  

Control Exposé via AppleScript and voice | 2 comments | Create New Account
Click here to return to the 'Control Exposé via AppleScript and voice' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Control Exposé via AppleScript and voice
Authored by: Donkey Butter on Jul 24, '06 01:52:26PM

How do you know what key code each system event is? you had 111 --F12 to activate dashboard. well I have mapped dashboard to F8. through trial and error I found that 100 --F8 worked for me. I looked around in system events resources but didn't find anything. yes I'm unexperienced in applescript so sorry if this is a repeatedly asked question



[ Reply to This | # ]
Improved Script
Authored by: qwerty denzel on Jul 24, '06 08:39:10PM

I have modified the script linked in the hint by adding a handler for reading the correct key code for the Exposé action (including modifier keys), along with a number of other small improvements.

The script and a list of improvements can be found under the topic Control Exposé via AppleScript and voice (macosxhints) at MacScripter.net's Code Exchange forums.



[ Reply to This | # ]