Applescript: path to files in application's Resources I'm new to applescript and coding.

I'm trying to make a little Applescript application that plays an audiofile contained in the .app, using:

do shell script "afplay " &amp; quoted form of ("/Users/billy/Desktop/test.app/Contents/Resources/Stuff/audio.m4a")    


The problem is; how can I make the app work on an another mac, without having to change the /username/ manually?
set myPath to POSIX path of (path to resource "audio.m4a")

    do shell script "afplay " &amp; quoted form of myPath


or

set myPath to POSIX path of (path to resource  "audio.m4a" in directory "Stuff")

do shell script "afplay " &amp; quoted form of myPath








You should look at the libraries in the library window of Script Editor.

In this case standardAdditions