So I have been trying to create an AppleScript application that when I click on it, it opens a mp3 file within the packages contents and resources. This is the only code I have within the script:
set filepath to (path to me as string) & "Contents:Resources:Jingle bells.mp3" tell application "Finder" open alias filepath
but I receive a "script error" message saying: error "Finder got an error: Can’t get alias \"Macintosh HD:Users:bobby.hay:Desktop:Song.app:Contents:Resources:Scripts:main.scptContents:Resources:Jingle bells.mp3\"." number -1728
I am trying to get the application to open Jingle bells.mp3 which is inside /Contents/Resources of my script.