AppleScript Editor and FMP
I developed a script in the AppleScript Editor, which I included in FMP as a "Perform Applescript". It works fine in the Editor.
setsong_fileto "Macintosh HD:Users:my_name:desktop:afplay_playlist.tab"
set the_Songs to paragraphs of (read file song_file)
set volume output volume 20
if (counta_Song's words) > 0 then
do shell script ("afplay " & quoted formofPOSIX pathofa_Song)