Ps in Leopard

I have code like this:

set my_list to do shell script "ps -Acr -o command | sed 1d | sed 's/^ *//'"

But in Leopard it shows all my own AppleScripts which are saved as Application Bundles, as “applet”.

Is there any way i can save scripts as bundles and get their real names using ps or some other way?

I get the same result as you explain when I have an application bundle open in Leopard. But if I get the process names like this it returns the proper name…

tell application "System Events"
	set {names, PIDs} to {name, unix id} of every process
end tell
return {names, PIDs}

Cool.

Only problem with this is that it dont return all running processes such as launchd…