How to make Microsoft Keyboard special keys run osascript commands on OSX?
- by t-a-w
I'm trying to make (1) special key open new terminal window.
I bound it to file /Users/taw/bin/new_term, which contains:
#!/bin/sh
exec osascript -e 'tell application "Terminal" to do script "cd ."'
This does the trick, except it also opens a Terminal window with this (even though Terminal.app is configured to always close windows when…