run script problems in script application

I had a “run script” command working just fine before, but now that it’s refering to a script in a different script application’s package contents it come up with these two errors for these two scripts.

run script file "Macintosh HD:Users:logan:Desktop:install:contents:Resources:scripts:sortpaths.scpt"

error:
tell current application
run script file “Macintosh HD:Users:logan:Desktop:install:contents:Resources:scripts:sortpaths.scpt”
“Can’t make some data into the expected type.”

tell application "Finder"
	run script file (desktop as string) & "install:contents:Resources:scripts:sortpaths.scpt"
end tell

and get this error:
tell application “Finder”
get desktop
“Macintosh HD:Users:logan:Desktop:”
get file “Macintosh HD:Users:logan:Desktop:”
“Finder got an error: Can’t get file "Macintosh HD:Users:logan:Desktop:".”

this is just the section of the code that’s having trouble, what I want to do is be able to run this no matter where on the person’s computer “install.app” is.

any ideas?

thanks

Hi,

If it’s in a package, then try using the .app extension (e.g. install.app).

gl,

yep, that did the trick

thanks