![Unicorn approved](https://img.shields.io/badge/unicorn-approved-ff69b4.svg?style=flat)
itunes-remote
Control iTunes via your terminal :notes:
Using JXA via osascript via Node.js.
Requirements
- Node.js (v0.12.7 or greater)
- Mac OS X (El Capitan 10.11.0 or greater)
- Might work with Yosemite (Feedback appreciated)
- Some tracks in your iTunes library
Demo
![demo](https://github.com/mischah/itunes-remote/raw/HEAD/demo.gif)
Install
$ npm install --global itunes-remote
Usage
It’s interactive and offering an own prompt.
$ itunes-remote
iTunes: help
Commands:
help [command] Provides help for a given command.
exit [options] Exit itunes-remote.
play Start playing the current selection
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.
Command Groups:
play * 2 sub-commands.
iTunes:
But you also can pass command line arguments to quickly start a search with starting the CLI:
$ itunes-remote search nicknack -artist
iTunes:
Hold on …
✔ Found songs by ”nicknack“ and generated a temporary playlist
✔ Playing 44 song(s) ♪♬
iTunes:
License
MIT © Michael Kühnel