• 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: "J.B. Stewart" <email@hidden>
  • Date: Mon, 11 Feb 2002 14:30:22 -0500

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.

  • Follow-Ups:
    • Re: Apple System Profiler in OS10.1.2 opens OS9.2
      • From: Shane Stanley <email@hidden>
References: 
 >Apple System Profiler in OS10.1.2 opens OS9.2 (From: mauricio <email@hidden>)

  • Prev by Date: Re: Apple System Profiler in OS10.1.2 opens OS9.2
  • Next by Date: Re: shell script with top "can't get terminal attributes"?
  • Previous by thread: 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