• 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: Christopher Stone <email@hidden>
  • Date: Sun, 03 Apr 2011 06:12:44 -0500

Alright.  After much hacking around I've got something that seems to be working reliably, siphons off the SystemFlippers error, and uses only built-in Mac OS X tools.  I'd have preferred to grab the whole record for each ppc app, but I don't yet have enough chops with sed or AWK.

The script grabs the 'kind' through the 'location' fields from each ppc-app record; creates a report file on the desktop, and opens that file in TextEdit.  It ain't pretty, but it works.

--
Best Regards,
Chris

try
set cmd to "
cd ~/Desktop/
system_profiler SPApplicationsDataType 2>/dev/null \\
| sed -nE '/^ {6}Kind: PowerPC/,/^ {6}Location:/p' \\
| awk '{ gsub(/^ {6}Kind: PowerPC/, \"\\n\"$0); print}' > PPC_Applications_Report.txt
open -e PPC_Applications_Report.txt
"
do shell script cmd


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

  • Follow-Ups:
    • Re: Find all PowerPC Applications in Applications folder
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Find all PowerPC Applications in Applications folder (From: Ronald Hofmann <email@hidden>)
 >Re: Find all PowerPC Applications in Applications folder (From: Christopher Stone <email@hidden>)
 >Re: Find all PowerPC Applications in Applications folder (From: Ronald Hofmann <email@hidden>)
 >Re: Find all PowerPC Applications in Applications folder (From: Christopher Stone <email@hidden>)
 >Re: Find all PowerPC Applications in Applications folder (From: Ronald Hofmann <email@hidden>)
 >Re: Find all PowerPC Applications in Applications folder (From: Ronald Hofmann <email@hidden>)

  • Prev by Date: Re: Find all PowerPC Applications in Applications folder
  • Next by Date: Re: Why is all not all?
  • 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