Applescript in cron; error 2709

Hi,
I’m using the following script from cron, but running into errors. I’m placing this script in ~/bin/alarm-clock.sh and calling from cron with: ~/bin/alarm-clock.sh wake me up

#!/bin/sh
this_playlist="$*"
/usr/bin/osascript <<EOF
tell application "iTunes"
    tell source "Library"
       tell playlist "$this_playlist"
          play
       end tell
    end tell 
end tell
EOF

It works fine on the command line, but from cron I get the error: syntax error: Can’t get the application’s event dictionary. (-2709)
Any ideas?
TIA
Cog.