Calling to Files within a Bundle or App...

This is a bit confusing for me. I have a script that has been saved as an App and I am working from the main.scpt within in its package. I am trying to access some files that I placed in the Resources folder inside the package. I thought I could get them simply by using

(path to me as string)&"Resources:file.jpeg"

but it doesn’t seem to work. I know I’ve gotten it to work in the past but can’t remember how. Also, testing the above from Script Editor can be a pain because the

(path to me as string)

obviously is calling to Script Editor itself. Is there a better method of doing this other than saving and launching the compiled app every time?

Choose whichever style you need:

set fileAlias to (path to resource "SEScriptEditorX.icns")
set filePOSIX to POSIX path of ((path to me as string) & ¬
	"Contents:Resources:SEScriptEditorX.icns")
return {fileAlias, filePOSIX}

Note that you can test this particular script in Script Editor.

Model: Mac mini
AppleScript: 1.10
Browser: Safari 412
Operating System: Mac OS X (10.4)