The AppleScript dictionary
Audion's AppleScript dictionary contains the following events, available in the 'Audion Suite'.
play
Presses the 'play' button, starting audio. Play also doubles as pause; you can use the 'status' command to check which will occur.
stop
Presses the 'stop' button, stopping audio.
eject
Presses the 'eject' button, ejecting the currently inserted CD.
next track
Presses the 'next track' button, moving to the next track/MP3.
previous track
Presses the 'previous track' button.
net mode
Puts Audion into Net mode.
mp3 mode
Puts Audion into MP3 mode.
cd mode
Puts Audion into CD mode.
track count
In MP3 mode, returns the number of MP3s in your playlist. In CD mode, returns the number of tracks on the CD.
current track number
Returns the number of the currently playing track in CD mode, or curerntly playing MP3 in MP3 mode.
current track time
Returns a string containing time elapsed into the currently playing song.
Ex.: set timeIn to the current track time
clear playlist
Clears the current playlist. Will prompt the user to Save if the playlist contains any items.
add to playlist
Adds a file, passed as an alias, to the current playlist.
play mp3
Starts immediate playback of a file, passed as an alias.
status
Returns the strings "stopped", "playing", or "paused" based on the current status of Audion.
elapsed seconds
Returns an integer of the number of seconds elapsed into the currently playing song, useful for performing calculations.
current track name
Returns a string of the name of the currently playing audio track.
|