MacOS – Finding Rosetta / PPC applications on disk

macosrosetta

I know how to determine if a program is an Intel or PPC application (with Cmd-I or in the Activity Monitor).

But how can I find all PPC applications that still lurk on my disk?

Before upgrading to Lion I'd rather know which (seldom used) applications on my disk won't work anymore (I'd be happy with GUI or terminal ways to do this).

Best Answer

this shell script

find / -type f -perm -u=x -exec lipo -info {} \; 2>/dev/null | grep ppc | egrep -v 'i386|x86'

will print all binary executables (not only applications, but command line executables too) what are ppc but not intel.

Warning: will run really long time (maybe several ten minutes).

The script is really not effective, because will start zilion times the command "lipo" for all regular file. (what are clearly not executables too - like images). If someone want optimize it - feel free ;)