Re: Automating System Profiler
Re: Automating System Profiler
- Subject: Re: Automating System Profiler
- From: email@hidden
- Date: Thu, 22 Apr 2004 13:25:03 -0400
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.
--
SJWL
_______________________________________________
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.