i'm trying to make applescript search for a file inside an application and then open it. The problem is that i want the file to open from anywhere in the mac eg. Desktop, library, downloads etc. No matter where it is.
This script works but the file has to be on the desktop only, it won't work anywhere else as the path is for the desktop
set theFile to ({path to desktop} as text) & "MagroXELA.app:Contents:Troll.mp3" tell application "Finder" to open file theFile
Kind regards, Alex