Test if script running as standalone app

I tried searching but couldn’t find if there was/is a way to test if the current running script is running in a standalone app?

Any help would be appreciated

Hi Robert.

If this what you mean?

if ((path to me) = (path to current application)) then
	say "yes"
	say "no"
end if


I knew it had to be simple.