Anyone here good with Applescript and can help me create a script that will create a playlist and play files in Vox?
I have a FileMaker Pro Database that I use as a Jukebox of songs. It uses iTunes to play mp3 files. I'd prefer to play flac files and if I can get Vox to work I'll say goodbye to iTunes.
This is one of the Applescripts that I use to create a playlist of songs and play in iTunes:
<script>
tell application "FileMaker Pro"
set thisSong to cell "ServerRaysongnameCalc" of every record of document "Seven Track db" as list
end tell
tell application "iTunes"
activate
stop
end tell
tell application "iTunes"
if exists playlist "Now Playing" then
delete playlist "Now Playing"
end if
end tell
tell application "iTunes"
with timeout of 4000 seconds
set new_playlist to make new playlist
set the name of new_playlist to "Now Playing"
-- set shuffle of new_playlist to false (note: this is broken in iTunes 11)
set theTracks to thisSong
add theTracks to new_playlist
set the view of the front browser window to playlist "Now Playing"
play new_playlist
end timeout
end tell
</script>
I am not really that good with Applescript therefore I have had limited success with Vox and Applescript. It's possible that the Vox Applescript library may not be extensive enough to do what I am trying to do. If you can help that would be great.