Re: [genuine] Re: Automating System Profiler
Re: [genuine] Re: Automating System Profiler
- Subject: Re: [genuine] Re: Automating System Profiler
- From: jacques couzteau <email@hidden>
- Date: Sat, 24 Apr 2004 11:28:58 +0200
thanks.
exactly what i had in mind.
Am 22.04.2004 um 19:25 schrieb email@hidden:
I'm trying to script the System Profiler to saves profiles of
machines to a database. My System Profiler (4.0.3v40 on OSX Pnther
10.3.3) doesn't create any files when i use the following script.
Versuchen Sie diesen Code:
-- Created 22 April 2004. SJWL - dual 500 MHz G4, MacOS X 10.3.2.
-- SystemProfile.scpt' - Creates a Desktop File containing the Mac's
System Profile.
tell application "Finder" to set MacsName to (name of (container of
startup disk)) -- Name of Mac.
set myFilePath to (((path to desktop folder) as string) & MacsName &
".txt") -- Path and File Name.
set myFile to open for access myFilePath with write permission --
Create File.
tell application "System Profiler" to set mySystemProfile to system
profile -- Obtain Mac's Info.
tell application "System Profiler" to quit
write mySystemProfile to myFile -- Write to File.
close access myFile -- Close File.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.