I'm looking for a way for the terminal to get my attention after a command finishes. Something like this:
$ ./lengthy_command.sh ; focus_terminal
Is there any easy way to do that on Snow Leopard?
$ ./lengthy_command.sh; osascript -e 'tell application "Terminal" to activate'
If you want to get even fancier:
$ ./lengthy_command.sh; osascript -e 'tell application "Terminal"' -e 'activate' -e 'display alert "Done!"' -e 'end tell'
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
1 year ago