• 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: Apple System Profiler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apple System Profiler


  • Subject: Re: Apple System Profiler
  • From: Shane Stanley <email@hidden>
  • Date: Thu, 02 Aug 2001 08:50:47 +1000

On 2/8/01 4:42 AM +1000, email@hidden,
email@hidden, wrote:

> I need to do an inventory of about 50 iMacs (serial number, mac address,
> HD, and RAM). I know that this information is available from the ASP, and
> I've figured out of to script a general report, but what I really want to
> do is to run a script that grabs the info I need, and have it dump into a
> text file so I can import it to my database. Can anyone out there help? I
> really don't want to have to hand type all of this info if I don't have to.

This should give you a start:

tell application "Apple System Profiler"
activate
set report view format to shown on screen -- or text
set report contents to {software overview, memory overview, hardware
overview, network overview, printing overview, production information,
devices and volumes, extensions, control panels, applications, system
folders, system profile}
make new report at beginning
set theFile to (choose file name with prompt "System report text:")
set theText to (report text of report 1)
set fileRef to (open for access theFile with write permission)
write theText to fileRef
close access fileRef
close report 1 saving no
end tell

--
Shane Stanley, email@hidden


References: 
 >Apple System Profiler (From: email@hidden)

  • Prev by Date: Pixel sizes
  • Next by Date: Re: Quark Section Starts
  • Previous by thread: Apple System Profiler
  • Next by thread: RE: Apple System Profiler
  • Index(es):
    • Date
    • Thread