Re: Find all PowerPC Applications in Applications folder
Re: Find all PowerPC Applications in Applications folder
- Subject: Re: Find all PowerPC Applications in Applications folder
- From: Bill Cheeseman <email@hidden>
- Date: Sat, 02 Apr 2011 06:53:44 -0400
On Apr 2, 2011, at 4:04 AM, Christopher Stone wrote: On Apr 02, 2011, at 01:42, Ronald Hofmann wrote: I wonder how I can get all applications inside my Applications folder which are PowerPC only.
______________________________________________________________________
Hey Ronald,
Try this:
Chris's script doesn't work for me as written -- the first line fails because the 'ppcreport' file doesn't yet exist. Make the two changes noted below and it works great.
This is a terrific script for AppleScripters, because many of us have a lot of old scripts sitting around that were saved as PowerPC applications. They'll apparently need to be recompiled for Lion.
try set ppcReport to ((path to desktop as string) & "PPC_Applications_Report.txt") -- set ppcReport to alias ("" & (path to desktop) & "PPC_Applications_Report.txt") set cmd to "system_profiler SPApplicationsDataType | grep -B4 -A3 PowerPC > ~/Desktop/PPC_Applications_Report.txt" do shell script cmd tell application "TextEdit" activate open file ppcReport -- open ppcReport end tell 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
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden