tell application "Finder"
try
set AppName to name of application file id "ttxt" -- use your creator code
on error
display dialog "Application not found"
return
end try
end tell
tell application AppName
run
end tell
tell application "Finder"
try
set AppName to displayed name of application file id "ttxt" -- use your creator code
set appContainer to container of application file id "ttxt" as alias
on error
display dialog "Application not found"
return
end try
reveal alias ((appContainer as text) & AppName)
end tell