• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Find all PowerPC Applications in Applications folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Find all PowerPC Applications in Applications folder
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: Re: Why is all not all?
  • Next by Date: Re: Find all PowerPC Applications in Applications folder
  • Previous by thread: Re: Find all PowerPC Applications in Applications folder
  • Next by thread: Re: Find all PowerPC Applications in Applications folder
  • Index(es):
    • Date
    • Thread