Re: Jaguar & Apple System Profiler = :-(
Re: Jaguar & Apple System Profiler = :-(
- Subject: Re: Jaguar & Apple System Profiler = :-(
- From: Cornwall <email@hidden>
- Date: Tue, 8 Oct 2002 16:57:57 -0700
At 10:39 PM +0200 10/8/02, Martin Michel wrote:
>
Hi,
>
>
I just tried to script the Apple System Profiler in Mac OS X 10.2.1, but it seems to be impossible. Looking at its AppleScript dictionary I found out that there is not a single useful command anymore to retrieve information. Therefor my question is:
>
>
Will it be scriptable again in the future? It is just a bug that has to be fixed? Do I have a corrupted version of the ASP? Will I have to pay for .mac in order to be able to script the ASP? :)
It has changed, and it tain't as zippy as it was, but it does work - some.
set profReport to do shell script "/usr/sbin/AppleSystemProfiler"
tell application "Finder"
activate
set the clipboard to profReport
end tell
-->---------------------------------------------------
System Profile
---------------------------------------------------
Software Overview:
+----------------------------------------------------------------------+
| |
| System version : Mac OS X 10.2.1 (6D52) |
| Boot volume : Sox |
| Kernel version : Darwin Kernel Version 6.1: Fri Sep 6 23:24:34 PDT 2002; root:xnu/xnu-344.2.obj~2/RELEASE_PPC |
| User name : Corn (corn) |
| |
+----------------------------------------------------------------------+
Hardware Overview:
+----------------------------------------------------------------------+
| |
| Machine speed : 500 MHz |
| Bus speed : 100 MHz |
| Number of processors : 2 |
| L2 cache size : 1MB (times 2) |
| Machine model : Power Mac G4 (version = 2.9) |
| Boot ROM info : 4.2.8f1 |
| Customer serial number : XB0881CL-JNX-ff06 |
| Sales order number : 0100893344 |
| |
+----------------------------------------------------------------------+
Memory Overview:
Location Type Size
DIMM0/J21 SDRAM 256 MB
DIMM1/J22 SDRAM 256 MB
DIMM2/J23 SDRAM 512 MB
DIMM3/J24 empty
Network Overview:
Built-in:
+----------------------------------------------------------------------+
| |
| Flags : 0x8863<Up,Broadcast,b6,Running,Simplex,Multicast> |
| Ethernet address : 00.30.65.B2.A5.58 |
| |
+----------------------------------------------------------------------+
Built-in:
+----------------------------------------------------------------------+
| |
| Flags : 0x8051<Up,PpoinToPoint,Running,Multicast> |
| Ethernet address : 00.00.00.00.00.00 |
| IP : 66.32.179.123--> 66.32.179.1 |
| Subnet Mask : 255.0.0.0 |
| |
+----------------------------------------------------------------------+
---------------------------------------------------
Devices and Volumes
---------------------------------------------------
PCI:
SLOT-A(AGP):
+----------------------------------------------------------------------+
| |
| Card Type : display |
| Card Name : ATY,Rage128Pd |
| Card Model : ATY,Rage128Pro |
| Vendor ID : 1002 |
| Device ID : 5046 |
| ROM# : 113-72701-125 |
| Revision : 0 |
| Card (Video) Memory : 16 MB |
| |
+----------------------------------------------------------------------+
SLOT-D:
+----------------------------------------------------------------------+
| |
| Card Type : Not available |
| Card Name : pci9004,7850 |
| Card Model : Not available |
| Vendor ID : 9004 |
| Device ID : 5078 |
| ROM# : Not available |
| Revision : 3 |
| |
+----------------------------------------------------------------------+
USB Information:
USB Bus 0:
General Purpose USB Hub:
+----------------------------------------------------------------------+
| |
| Product ID : 8246 ($2036) |
| Vendor ID : 1105 |
| Device Speed : Full |
| Power (mA) : 500 |
| |
+----------------------------------------------------------------------+
USB Printer:
+----------------------------------------------------------------------+
| |
| Product ID : 5 ($5) |
| Serial Num : HU0LL0107130622140 |
| Vendor : EPSON |
| Device Speed : Full |
| Power (mA) : 200 |
| |
<BIG SNIP>
set SSO to do shell script "/usr/sbin/AppleSystemProfiler | grep \"IP\""
set LO to offset of "=" in SSO --6
set RO to offset of "--" in SSO --22
set the clipboard to text (LO + 2) thru (RO - 1) of SSO
--> 216.175.97.1
--
Cornwall C. Cornball
Axiomatic Ideas & Checkbook Balancing
The answer to everything, and the solution to nothing.
<~:~> <~:~> <~:~> <~:~> <~:~>
The future is so bright I have to wear shades!
_______________________________________________
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.