Example script

    Here are some useful, brief AppleScripts that will hopefully provide you with a deeper understanding of Audion's dictionary.

The Script

    This script adds two files to a playlist, switches to MP3 mode, and begins playing the playlist. After 10 seconds into the first song in the playlist, it will automatically switch to the next song.

    tell application "Finder"

      set theFile to file "I am the Walrus.mp3" of folder "Beatles" of folder "MP3s" of disk "Baby"
      set theFileTwo to file "Lucy in the Sky.mp3" of folder "Beatles" of folder "MP3s" of disk "Baby"

    end tell

    tell application "Audion PPC"

      activate
      clear playlist
      add to playlist theFile as alias
      add to playlist theFileTwo as alias
      mp3 mode
      play
      repeat until the (elapsed seconds) is greater than or equal to 10
      end repeat
      next track

    end tell


Table of contents