Apple System Profiler
tell app "Apple System Profiler" (* get the machine's IP address *) get TCPIP address end tell
This command opens an ASP report, as in the following example:
set rep to "macintosh hd:desktop folder:ASP report" as alias tell application "Apple System Profiler" activate bring ASP to the front open rep end tell
This prints a report, as in print
displaying print dialog true as text.
displaying print dialog(
This is an optional
true/false value. If
true, it displays a dialog
for setting printing preferences prior to printing the ASP report.
This is an optional labeled parameter involving whether to print out the report as text or as it is laid out on screen in the ASP document.
This command quits ASP.
This command sends a run Apple event to ASP, which is the same as double-clicking the program’s icon on the desktop. This opens the application if it is not already open.
This closes an ASP report, optionally saving it in a file. Here is example code:
close report "ASPreport" saving ask
The optional saving labeled parameter takes one of three constants. yes saves the report with a default name in ASP’s directory (which is the Apple Menu Items folder), no just closes the report without saving it, and ask displays a dialog that the user can use optionally to ...