do shell script "system_profiler"
do shell script "system_profiler"
- Subject: do shell script "system_profiler"
- From: bill <email@hidden>
- Date: Mon, 14 Apr 2003 16:32:01 +0800
Hello,
Anyone tried this shell command of Mac OS X 10.2.5?
It runs without launching Apple System Profiler, takes about 20 seconds to
generate the report.
Just want to know is it possible that the command cease to generate other
parts when we grep what we want, and return the result at once?
eg:
do shell script "system_profiler | grep 'System version'"
-- " System version: Mac OS X 10.2.5 (6L29)"
It9s the sixth lines, however, system_profiler takes the same time as making
a whole report.
Any idea?
TIA
bill
_______________________________________________
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.