-------------------------------------------------------------------------------------------
# dNam: Playing Sounds with ASObjC
# dMod: 2015/10/30 08:01
-------------------------------------------------------------------------------------------
use scripting additions
use framework "Foundation"
use framework "AppKit"
tell application "Finder" to set finderSelectionList to selection as alias list
if finderSelectionList is not {} then
set theSound to POSIX path of first item of finderSelectionList
tell (current application's NSSound's alloc()'s initWithContentsOfFile:theSound byReference:false) to play()
end if
-------------------------------------------------------------------------------------------