Internal Path

Hey guys,

I am looking for a little help.
I have created an application using XCode and Apple Script. Here is the code I am currently using;



tell application "QuickTime Player"
		activate
		open alias "Macintosh HD:Users:andy:Movies:DemoMovie.mov"
		present document 1 scale screen
	end tell


What I would like is that if I could link to DemoMovie.mov without having to specify a path. I have imported the movie into the XCode project however if I change the AppleScript to look for alias “./DemoMovie.mov” it fails.

Basically this application will be used in places where the movie will not be residing in the Movies location.

Thanks for your help.

Place the DemoMovie.mov in the Resources folder.
This worked for me with an application bundle…

tell application "QuickTime Player"
	activate
	open the file ((path to me) & "Contents:Resources:DemoMovie.mov" as string)
	present document 1 scale screen
end tell

Tom