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: John Baltutis <email@hidden>
- Date: Sun, 03 Apr 2011 00:23:58 -0700
On 4/2/11, Bill Cheeseman <email@hidden> wrote:
> 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.
>>
>> 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
Check again. System Profiler doesn't look inside the Applications folder for
Applications. I don't know exactly what it's reporting, but it misses lots of
things. In fact, I have four bootable volumes and it missed every Applications
folder within those boot volumes. The script needs serious tweaking or
something else needs to be tried.
_______________________________________________
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