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

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


  • Prev by Date: Re: Out of Memory
  • Next by Date: AOL IM v4.3.123
  • Previous by thread: Print PDF from folder
  • Next by thread: AOL IM v4.3.123
  • Index(es):
    • Date
    • Thread