Why not adopt me?
This distribution is up for adoption!
If you're interested then please contact the PAUSE module admins via
email.
NAME
Mac::iTunes::AppleScript - control iTunes from Perl
SYNOPSIS
use Mac::iTunes;
my $itunes = Mac::iTunes->controller;
$itunes->activate; $itunes->play; $itunes->quit;
DESCRIPTION
Methods
- new()
-
Returns a singleton object that can control iTunes.
- play
-
Start playing the current selection
- pause
-
Pause playback.
- playpause
-
Toggle the play-pause button. If it's on play, it will pause, and if it's on pause, it will play.
- next, next_track
-
Skip to the next track
- previous, previous_track
-
Skip to the previous track
- redo, back_track
-
Go back to the start of the current track
- stop
-
Stop playback.
- fast_forward
-
Fast forward through the current selection.
- rewind
-
Rewind through the current selection.
- resume
-
Start playing after fast forward or rewind
- quit
-
Quit iTunes
- open_url( URL )
- tell( COMMAND )
-
The tell() method runs a simple applescript
- state
-
Returns the state of the iTunes application, represented by one of the following symbolic constants:
STOPPED PLAYING PAUSED FAST_FORWARDING REWINDING