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: Paul Berkowitz <email@hidden>
- Date: Mon, 11 Feb 2002 10:34:55 -0800
On 2/11/02 9:44 AM, "Charles Arthur" <email@hidden> wrote:
>
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.
>
3) If you're using regular AppleScript, then use colons in your path, not
slashes. That's why AppleScript doesn't know what the heck you're talking
about.
tell app "Hard Drive:Applications:Utilities:Apple System Profiler"
should work just fine.
--
Paul Berkowitz
_______________________________________________
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.