Scripting Apple System Profiler
Scripting Apple System Profiler
- Subject: Scripting Apple System Profiler
- From: email@hidden
- Date: Tue, 13 Feb 2001 15:02:44 -0500
I'm trying to script Apple System Profiler. I've met with some success. Here
is my current script:
get path to desktop as string
set desktopPath to result & "System Folder Details"
tell application "Apple System Profiler"
activate
--get hardware info
--get version
--set default report contents to "all"
get properties
set reportProperties to result
get the report of (make new report at desktopPath)
--make at beginning new document
--save report 1 in file "Mac External:Desktop Folder:ASP report 1/31/01"
save report 1 in file desktopPath
close report 1 saving no
--close window "Apple System Profiler"
--quit application "Apple System Profiler"
end tell
This script works but only produces a "default" report.
I'm interested in a "full" report instead. In the dictionary, it appears
that I can "set" the "default report contents" (as in the line commented out
above. But when I try, the line gets changed by the script editor. The word
"default" gets dropped. This produces an attempt to modify a read-only field
and the script halts.
Any ideas on how to create a "full" report?
Thanks.
Gary