Auditing Script (Is it possible to add a display box while running this)
Auditing Script (Is it possible to add a display box while running this)
- Subject: Auditing Script (Is it possible to add a display box while running this)
- From: "charles.lindsay" <email@hidden>
- Date: Fri, 28 Jun 2002 00:26:06 +0100
This is my first script.
I am using it to automatically run Apple System Profiler to
audit a few macs that I have to administer.
Basically the script mounts a Server volume, runs Apple System profiler
while hidden , creates a text report of the preferences that i have set, and
saves the profiler text report as the computer name with a .mac extension,
it then unmounts the volume and quits.
It does what i need it it do, apart from a couple of things.
1)I was wondering if it is possible to display a message box or something
similar when Apple System Profiler runs in the background , so that a user
knows that i am doing something on their mac.
2)When Apple System Profiler is first selected it pops up for a few seconds
and then is hidden. Is it possible to totally hide Apple System Profiler?
3) Does anyone have ideas for improving this script?
Thanks in advance
Charles
mount volume "Volume" on server "Server" in AppleTalk zone
"zone" as user name "name" with password "password"
delay 5
tell application "Finder"
activate
select file "Apple System Profiler" of folder "Auto-Audit" of startup
disk
open selection
end tell
tell application "Apple System Profiler"
activate
tell application "Finder"
if exists process "Apple System Profiler" then
set visible of process "Apple System Profiler" to false
end if
end tell
make new report at beginning with properties {report view format:text,
report contents:{system profile, control panels, extensions, applications,
devices and volumes}}
set asset to {computer name, ".mac"}
set pathname to ("Volume:Folder:" & asset)
close report 1 saving yes saving in file pathname
end tell
tell application "Apple System Profiler"
close
end tell
tell application "Finder"
put away disk "Volume"
end tell
quit
_______________________________________________
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.