• 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: Hiding the Apple System Profiler while it executes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hiding the Apple System Profiler while it executes


  • Subject: Re: Hiding the Apple System Profiler while it executes
  • From: Bill Briggs <email@hidden>
  • Date: Sun, 10 Jun 2001 11:46:52 -0300

At 9:20 PM -0800 13/12/01, randy graves wrote:
I'm new to AppleScript, and I'm wondering if there is any way to hide the screen display of the System Profiler, but still get the results of its having been run? I need to discover the inventory of many Macs, and people tend to bail on the Profiler when they see it auto-exectuing on their desktop.

Any help would be appreciated, I can't seem to find a directive in the Profiler dictionary that will make it run in the background.


You wouldn't hide it using its own commands. Every running application is a "process" that belongs to the Finder. You can check for the existence of the process, and if it exists, get the Finder to hide it by setting it's visible to false. You can still query it for information while it's hidden and do what you want with that info, and then quit the System Profiler afterward without making it visible.

tell application "Finder"
if exists process "Apple System Profiler" then
set visible of process "Apple System Profiler" to false
end if
end tell

- web


  • Prev by Date: Re: Applescript brings finder to front each time
  • Next by Date: iDisk Mounter 1.8
  • Previous by thread: Re: Playing with Objects
  • Next by thread: iDisk Mounter 1.8
  • Index(es):
    • Date
    • Thread