10.4: Apply Finder labels based on application type

May 10, '06 07:30:00AM

Contributed by: jspahr

Tiger only hintHaving just bought a MacBookPro, I wanted a fast and easy way to see what apps I have that are universal, versus the ones that are PowerPC. This AppleScript will apply finder color labels to all of you applications. PowerPC apps are labeled grey, and Intel-only apps are labeled yellow. Universal Apps get no color label.

[robg adds: This earlier hint explained how to use Terminal to return a list of Intel-ready applications, and this hint used a different shell script to find all non-universal applications (with more nicely formatted output). This AppleScript, since it relies on the System Profiler report, will only work for applications located in the /Applications or ~/Applications folders, but it will traverse any subfolders of those directories as well.

If you want to remove the labels at some point, just modify the script so all instances of the set app_type... line read set app_type to 0, and then run it again. The script worked as described when I tested it on my Core Duo mini.]

Comments (4)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20060506095341646