Re: Apple System Profiler
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