PDA

View Full Version : HOTkeys


P E A N U T S
02-09-2003, 07:36 AM
In OS X can I have the same Hot-Key facility as OS 9 gave me? Maybe there is another way to launch applications at the press of a button?

brmic
02-09-2003, 10:17 AM
there are a number of such applications on versiontracker, like Keyboard Maestro, Key Xing and Shortcut.Menu
i do not know of a native way to assign Hot-Keys

brmic
02-09-2003, 06:10 PM
found ReKey and pearSSC on versiontracker:
http://www.versiontracker.com/moreinfo.fcgi?id=10592&db=mac
http://www.versiontracker.com/moreinfo.fcgi?id=15376&db=mac

both work by modifying the Info.plist of applications. I modified my TextEdit Info.plist to:
<key>NSServices</key>
<array>
<dict>
<key>NSKeyEquivalent</key>
<dict>
<key>default</key>
<string>P</string>
</dict>
<key>NSMenuItem</key>
<dict>
<key>default</key>
<string>Open File in TextEdit</string>
</dict>
<key>NSMessage</key>
<string>openFile</string>
<key>NSPortName</key>
<string>TextEdit</string>
<key>NSSendTypes</key>
<array>
<string>NSStringPboardType</string>
</array>
</dict>
<dict>
<key>NSKeyEquivalent</key>
<dict>
<key>default</key>
<string>O</string>
</dict>
<key>NSMenuItem</key>
<dict>
<key>default</key>
<string>Open Selection in TextEdit</string>
</dict>
<key>NSMessage</key>
<string>openSelection</string>
<key>NSPortName</key>
<string>TextEdit</string>
<key>NSSendTypes</key>
<array>
<string>NSRTFDPboardType</string>
<string>NSRTFPboardType</string>
<string>NSStringPboardType</string>
</array>
</dict>
</array>

by adding the NSKeyEquivalents and changing the NSMenuItems. (compare to your version).
Works perfectly.
Two warnings though. i had a kernel panic right after saving, though i might have forgotten to quit the finder before tweaking. (runs fine again now, Services displays changed entries, shortcuts work) Second, be careful not to assign the key combinatiosn, that are used by other applications or the finder. Using numbers for your favourite Applications is probably best.