itunes: a simple cli wrapper for itunes

version information:


simple itunes command line interface, v 0.1, by duus

type <itunes help> for more information
or open source code with a text editor and read it
http://thedu.us/scripts/itunes/itunes/

help information:


Usage of itunes cli v. 0.1 by duus
type itunes <args> at the prompt
where args are:

<off/on> -- toggle activity of itunes.sh


_Play Control_
no arguments, or <pp> or <playpause> will toggle itunes' play status
<(p)lay> will play itunes
<pause> will pause itunes
<next> or <new> will forward one track
<(prev)ious> or <back> will go back one track
<(s)top> will stop itunes
<g>et WORD will get WORD of currently playing track (where WORD = name, index, album, artist, etc)
<song> will get 'name' by artist from the _album_ (year) of currently playing track
<(pod)casts> will update all podcasts
<r>ating VALUE will set the rating of currently playing track to VALUE (0-5 goes to 0-100)

_iPod Control_
<sync> will sync an attached ipod
<(e)ject> will eject an attached ipod

_Playlists_
<playlist NAME> will play the playlist named NAME (or <(l)ist> will do the same)
<(dj)> will play iTunes DJ (formerly Party Shuffle) also: <(party)shuffle>

_Application Control_
<hide> hides itunes
<open>/<start> starts iTunes
<quit> will quit itunes

_itunes cli information_
<(i)nstall> displays install information
<(v)ersion> displays version information
<(h)elp> displays this help file
<src> displays the source code

_Other_
an unrecognized argument will be passed to itunes as a command
(please see the Script Editor iTunes Dictionary for more commands)

(download script)

to install:

  1. copy script into a folder on your path.
  2. type chmod +x itunes.sh to make it executable


a duusscript... This page updated: Thu May 14 18:36:12 EDT 2009, when duus was feeling suspicious.