If you will be sending to more than one system, you may choose to extend it, or have multiple applications, one per remote system, with the hard-coded password and IP address instead. It can be extended, of course, to also ask for a password and IP address, rather than just the message. It will then pass that text as an argument to the message option (-m) of growlnotify, with the title of “Instant message.” This script can be saved as an application so it can be double-clicked or called with a launching program like LaunchBar or QuickSilver. This script, when run, will ask for a string of text to display as the instant message. This can be remedied with an Automator application or workflow that looks like the following: It’s great for reporting on things happening on one system to another, but it doesn’t really lend itself well to quick instant messages (such as with an instant message client). Using growlnotify like this is quite useful if you feel like using the command-line. Without the password, no message will be displayed on the remote system. This will tell growlnotify to connect to the Growl listener on 192.168.1.12 with the password “sekrit.” The title of the message is “Hello” and the -m option provides the actual message text to display. On the command-line, growlnotify can be invoked as: $ growlnotify -H 192.168.1.12 -t "Hello" -m "This is a test message" -P sekrit Messages sent will use the default display settings. This forces a remote application (such as growlnotify) to authenticate before the receiving Growl instance displays the sent message. Enable Listen For Incoming Notifications and Allow Remote Application Registration, and be sure to set a server password. Next, on the system that you want to receive these remote messages on (not the sending system), start System Preferences and open the “Growl” section. Growlnotify is the command-line client that can be scripted to send messages to a remote Growl server. Also, be sure to install growlnotify in the Extras/ folder of the Growl install disk image. Growl is a great notification system and a number of applications use it, so if you don’t have Growl already installed, you’re really missing out. The first thing is to install Growl if it is not already installed. The solution involves some command-line use, and the Growl notification system. Much like older versions of Windows had a quick-and-dirty instant messaging facility via WinPopup, it is possible to make OS X do something similar. One handy feature when you have multiple systems is the ability to send quick instant messages from one Mac to the next. You can set up the ability for Macs on a LAN to send quick instant messages to one another with the Growl notification system and use of the command line. Send instant messages between Macs on a LAN
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |