Re: Apple System Profiler in OS10.1.2 opens OS9.2
Re: Apple System Profiler in OS10.1.2 opens OS9.2
- Subject: Re: Apple System Profiler in OS10.1.2 opens OS9.2
- From: Charles Arthur <email@hidden>
- Date: Mon, 11 Feb 2002 17:44:03 +0000
On Mon, 11 Feb 2002 15:52:04 +0000, mauricio <email@hidden> wrote:
>
>
I'm trying to access the Apple System Profiler in OSX, using AppleScript
>
1.8.2, but every time I run the script OS 9 starts up and opens the
>
System Profiler for OS9.
>
I've tried:
>
tell app "Hard Drive/Applications/Utilities/Apple System Profiler",
>
when asked where app Apple System Profiler is I selected the OSX
>
version but still opens in OS 9. Could someone help on this one, please.
Why not just set up the script - call Apple System Profiler something like
"ASP" - and then when Script Editor asks you "Where the HELL have you put
ASP??" (but more politely) pick the version in the long list which is
described as "Application" rather than "Classic Application".
Two things:
1) ASP should live in your /Applications/Utilities folder. You aren't
giving it the correct path, or perhaps you're pointing it to your OS9
Applications folder (though that should be called "Applications (OS9)".
You've been playing about, haven't you?
2) As has recently been discussed here, you can run it must faster as
do shell script "/usr/sbin/AppleSystemProfiler"
and you can then pipe the output to grep [and people say computer
lingo is obscure - hah!] and grab interesting things, such as Ethernet
addresses, much much more quickly than fiddling about with TIDs.
The form using grep is:
do shell script "/usr/sbin/AppleSystemProfiler | grep \"Ethernet address\""
Go back about 3 or 4 digests for this - Saturday's, in fact. I get 2
ethernet addresses - I have an Airport card as well as the en0.
Charles
----------------------------
http://www.ukclimbing.com : 1000+ British crags, 350+ British climbing
walls - searchable by distance and anything else you care to think of -
with weather forecasts for every one, plus maps, articles, news and
features. Plus Britain's busiest climbing discussion boards. And there's
even a cool shop attached.
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
_______________________________________________
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.