dorkhub

itunes-remote

:notes: Control iTunes via CLI

mischah
JavaScript43329 forksMITupdated 6 years ago
git clone https://github.com/mischah/itunes-remote.gitmischah/itunes-remote

npm version Coverage Status devDependency Status Dependency Status Unicorn approved Mentioned in Awesome Node.js

itunes-remote

Control iTunes via your terminal 🎶

Using JXA via osascript via Node.js.

Requirements

  • Node.js (v0.12.7 or greater)
  • Mac OS X (Yosemite 10.10.0 or greater)
  • Some tracks in your iTunes library

Demo

demo

Install

$ npm install --global itunes-remote

Usage

It’s interactive and offering an own prompt.

$ itunes
iTunes: help

  Commands:

    help [command...]              Provides help for a given command.
    exit                           Exit itunes-remote.
    play                           Start playing the current selection
    play artist                    Plays songs by an artist.
    play album                     Plays an album.
    stop                           Stop playing the current selection
    pause                          Pause playing the current selection
    next                           Advance to the next track in the current playlist.
    previous                       Return to the previous track in the current playlist.
    back                           Reposition to beginning of current track or go to previous track if already at
                                   start of current track.
    search [options] <searchterm>  Fuzzy search album, artists and songs.

iTunes: 

Note:
You can also pass commands and options from the outside.

$ itunes stop --exit
iTunes:
✔ Stopped playing ♪♬
$

Thanks

Special shoutout to @dthree for his nice way to offer support for vorpal 😊

This tiny little module wouldn‘t be possible without the work of all these amazing humans. Thanks.

License

MIT © Michael Kühnel

more like this

agentlytics

Comprehensive analytics dashboard for AI coding agents — Cursor, Windsurf, Claude Code, VS Code Copilot, Zed, Antigravi…

JavaScript555
@f

r2

Free open-source Cloudflare R2 desktop client and S3 GUI for macOS, Windows, and Linux. Manage Cloudflare R2, AWS S3, M…

TypeScript50

meine

meine 🌒 - A CLI file manager and system utility built with Textual. It combines intuitive command parsing with rich t…

Python50

search

search projects, people, and tags