Pipe Event |
|
Submitted By joshua stein (jcs) |
DescriptionWhen added to an event type (such as "Received message"), this plugin will spawn a command and pipe the event text to its STDIN. The title of the event (the name of the sender for received messages) will be sent to the command as its first argument.Typical uses might be sending received messages to a script that can forward them over e-mail or over a notification API like Prowl or Notifo. Source code can be downloaded at https://github.com/jcs/adium-pipeevent. Changes2010-12-28 - 1.01.0 - Initial release 2011-11-14 - 1.1 1.1 - Recompiled for OS X Lion ImagesCommentsYou can reply to individual comments by clicking the "Reply" link next to each. # by monoclast on 11/19/11 at 20:17:55For the life of me, I can't get this extra to work on Lion. I'm using the latest version (1.1) - just downloaded and installed from your link above.
I've got Adium set up to use the "Pipe event to command" action for the "You connect" event, pointing to a Perl script at /usr/local/bin/adium_events. The script has execute permissions, and runs fine manually from the command line. I have it logging out to a log file so I can see when it runs. It never gets run from Adium when I connect. I've also tried setting it to run this very simple command: /usr/bin/osascript -l AppleScript -e "tell application "Finder" to beep" Nothing happens when I connect. No joy. : ( # by jcs on 11/19/11 at 22:15:30# by monoclast on 11/20/11 at 09:57:37You say "stdout and stderr get closed right away". I'm not sure I completely understand this though. Can you help me by answering a couple questions please?:
Is Adium responsible for closing STDERR and STDOUT? If so, why would Adium do that? Is there a way I could somehow re-open STDERR and STDOUT in a Perl script? Why am I able to echo things out to a file from a shell script (echo "blah" > file), but not print to a file (open FILE, print FILE "blah") in a Perl script? # by Mille on 12/27/11 at 01:52:50This one is really good!
Got me thinking of another way to use it. Maybe someone could help me make it happen? I'd like to log all user events (online/offline/pm change/etc) in a text file by week. Would that be possible with a simple snippet? Thank you in advance! Post a New CommentYou must be logged in to post comments. |
# by monoclast on 11/18/11 at 18:36:00
# by jcs on 11/18/11 at 20:29:38
you can try downloading 1.1 from github until the update is approved here.
https://github.com/jcs/adium-pipeeven...t/downloads