Re: Hiding the Apple System Profiler while it executes
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