https://github.com/tupton/itunes-now-playing
A simple Perl script that shows the currently playing track from iTunes.
https://github.com/tupton/itunes-now-playing
Last synced: 3 months ago
JSON representation
A simple Perl script that shows the currently playing track from iTunes.
- Host: GitHub
- URL: https://github.com/tupton/itunes-now-playing
- Owner: tupton
- Created: 2009-03-14T15:05:17.000Z (about 16 years ago)
- Default Branch: master
- Last Pushed: 2010-11-06T16:06:43.000Z (over 14 years ago)
- Last Synced: 2025-01-23T04:44:08.634Z (4 months ago)
- Language: Perl
- Homepage:
- Size: 102 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# iTunes Now Playing
A simple Perl script that grabs the currently-playing track from iTunes and
displays the artist and track name in plain text.Written by [Thomas Upton][tu]
[tu]: http://www.thomasupton.com/
This code uses a function conceived by John Gruber that is used to tell if the
iTunes application is currently running. More information can be found on [Daring
Fireball][df].[df]: http://daringfireball.net/2006/10/how_to_tell_if_an_app_is_running
This code is licensed under a [BY-NC-SA Creative Commons][cc] license.
[cc]: http://creativecommons.org/licenses/by-nc-sa/3.0/us/
Make the script executable before using it.
$ chmod +x now-playing.pl
Usage:
$ ./now-playing.pl
When using this script on OS X, it may be useful to pipe this command through
iconv for Unicode character support.$ ./now-playing.pl | iconv -f utf-8 -t ucs-2-internal