Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Scripts to announce Azureus and VLC info via XChat Apps
I imagine that lots of XChat (and XChat Aqua) users would have already discovered that getting XChat to announce iTunes track information is a piece of cake with a simple line of AppleScript, but I wasn't able to find any evidence of there being a similar trick with VLC, whose AppleScript functionality seems to be limited to control features such as play/pause etc.

Fortunately, there's more than one way to skin a good open source application. I opted for a fairly easy method, and chose to just enable file logging (under Interface: Control Interfaces) in VLC, and then parse the log file for the song titles. Here's the code.

This makes a great exercise in pulling textual data from a file into XChat via perl, so even someone with little or no Perl knowledge should be able to adapt this to suit some other application (although understanding regexps is a definite advantage).

A little more complex is the extracting of data from an XML file like Azureus' stats file. We could probably regexp this, too, but that would be silly. To make Azureus dump stats to a file, you just enable it under the Statistics menu of the options. Here's the code.

I have also posted more detailed info for using both scripts (along with installation instructions for the technically challenged).
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)

Scripts to announce Azureus and VLC info via XChat | 0 comments | Create New Account
Click here to return to the 'Scripts to announce Azureus and VLC info via XChat' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.