try
set cmd to "
cd ~/Desktop/
system_profiler SPApplicationsDataType 2>/dev/null \\
| sed -nE '/^ {6}Kind: PowerPC/,/^ {6}Location:/p' \\
| awk '{ gsub(/^ {6}Kind: PowerPC/, \"
\\n\"$0); print}' > PPC_Applications_Report.txt
open -e PPC_Applications_Report.txt
"
do shell script cmd
on error errMsg number errNum
set sep to "=============================="
set e to sep & return & "Error: " & errMsg & return & sep & return ¬
& "Error Number: " & errNum & return & sep
beep
display dialog e
end try