iTunesFMPGuy
07-18-2003, 10:49 AM
Hi there,
I use FileMaker Pro as a software jukebox. Using AppleScript I transfer a found set of songs from FileMaker to make a playlist in iTunes. Often the found set is large, over 100 or even 200 songs.
Does someone know of an AppleScript that will play the first 10 songs of a playlist or could a good AppleScripter help me modify my existing AppleScript to pick the first 10 songs of a found set?
Here's how my AppleScript works:
In FileMaker I get a list of songs from a found set. The list is set to "thisSong". Then I tell iTunes to set the tracks to "thisSong":
tell application "iTunes"
set new_playlist to make new playlist
set the name of new_playlist to "Now Playing"
set shuffle of new_playlist to false
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 tell
I use FileMaker Pro as a software jukebox. Using AppleScript I transfer a found set of songs from FileMaker to make a playlist in iTunes. Often the found set is large, over 100 or even 200 songs.
Does someone know of an AppleScript that will play the first 10 songs of a playlist or could a good AppleScripter help me modify my existing AppleScript to pick the first 10 songs of a found set?
Here's how my AppleScript works:
In FileMaker I get a list of songs from a found set. The list is set to "thisSong". Then I tell iTunes to set the tracks to "thisSong":
tell application "iTunes"
set new_playlist to make new playlist
set the name of new_playlist to "Now Playing"
set shuffle of new_playlist to false
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 tell