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: John MacDonald <email@hidden>
- Date: Sun, 4 Mar 2001 11:33:42 -0400
Hi Randy,
I sure wish there was a way of obscuring what was going on with other
apps, but there isn't. (I do have a rather bizarre method I use from
time to time that presents a blank QuickTime movie while other things
happen. It's slightly less pretty)
You need two techniques to do what you want.
First, if you 'open' many applications by telling them to 'launch',
they'll open without a window and will do so in the background. Apple
System Profiler works this way
tell application "Apple System Profiler" to launch
The design of Apple System Profiler is based on reports, however. It
doesn't have any information without a window, so you need to hide
the process. The Finder can do this for you.
tell application "Finder" to set the visible of application process
"Apple System Profiler" to false
Now that it's hidden you can create a new report and get your info.
(Just don't tell it to activate.)
-John
At 9:20 PM -0800 12/13/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.
Randy graves
_______________________________________________
applescript-users mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/applescript-users