Playing audio files with applescript
I have used the following script in Snow Leopard, but it doesn't seem to work with Mountail Lion. Suggestions?
tell application "QuickTime Player"
activate
set the_file to "VGSMLShawver:Macintosh HD:Library:Audio:Apple Loops:Apple:iLife Sound Effects:Stingers:Comedy High Honk.caf"
set file_path to quoted form of (POSIX path of (the_file as alias))
do shell script ("afplay & file_path & file_path & " > /dev/null 2>&1&")
end tell
AppleScript