• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Apple System Profiler in OS10.1.2 opens OS9.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Apple System Profiler in OS10.1.2 opens OS9.2


  • Subject: RE: Apple System Profiler in OS10.1.2 opens OS9.2
  • From: email@hidden
  • Date: Mon, 11 Feb 2002 13:46:33 -0600

This is great information and much quicker than actually firing up Apple
System Profiler. However, I cannot get the Applications to show up - I can't
get them to show up just running Apple Systems Profiler. Maybe a problem
with ASP in OS X?

-----Original Message-----
From: J.B. Stewart [mailto:email@hidden]
Sent: Monday, February 11, 2002 1:30 PM
To: mauricio
Cc: email@hidden
Subject: Re: Apple System Profiler in OS10.1.2 opens OS9.2

On 2/11/02 at 3:52 PM, 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.
> Thanks


This unfortunately doesn't answer your specific question but instead of
using
the Apple System Profiler.app and parsing out the results why not just use

set asp to do shell script "/usr/sbin/AppleSystemProfiler"

which returns your info as a result into the variable asp and you can
manipulate it however you wish or if you have BBEdit (full version, possibly
lite version too I haven't tried it) installed you can use

do shell script "/usr/sbin/AppleSystemProfiler | bbedit"

to have the complete (or partial, see below) results put into a window in
BBEdit.

If you only want one specific item of the result you can use 'grep' to grab
just
that piece of info. For Example -

set asp to do shell script "/usr/sbin/AppleSystemProfiler | grep 'IP'"

--> " IP = 10.0.0.10"

Last but not least you can even redirect the partial result to a file or
BBEdit

do shell script "/usr/sbin/AppleSystemProfiler | grep 'Ethernet address'
|
bbedit" -- line wrapped OMM

which will place " Ethernet address = 00.03.93.15.FB.54" into a new BBEdit
window.


John
_______________________________________________
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.
_______________________________________________
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.

  • Prev by Date: Re: shell script with top "can't get terminal attributes"?
  • Next by Date: Re: Since Apple Listens to this List... [Case Statements]
  • Previous by thread: Re: Apple System Profiler in OS10.1.2 opens OS9.2
  • Next by thread: RE: Apple System Profiler in OS10.1.2 opens OS9.2
  • Index(es):
    • Date
    • Thread