Getting Past the OS X Screen Saver Login
Getting Past the OS X Screen Saver Login
- Subject: Getting Past the OS X Screen Saver Login
- From: Gary Beberman <email@hidden>
- Date: Mon, 23 Sep 2002 10:34:53 -0700
I have crontab-based Applescripts that need to run nightly on an OS X
(10.1.5) machine which has a screen saver log in. These processes
seem to need the interface available because they do not run--and
some can even cause a lock up--when the screen saver w/login is
active (I have outlined the processes at the bottom of this e-mail
for those who are interested).
I have successfully killed the screen saver process. But that does
not seem to do the job. Below is the script. It generates either of
two results:
1) The screen saver dies and immediately restarts (happens on the first kill).
2) The screen saver goes away, but the 'tell application "Finder"'
line at the bottom delivers an "application not running" error (even
though I'm looking at a Finder screen in front of me).
Does anyone have a way to get past this screen saver? To log into
it? To make processes run reliable behind it?
try
set itsRunning to (do shell script "ps -aex | grep ScreenSaver.framework")
set theerror to 0
on error errtxt number errnum
set theerror to errnum
end try
if (theerror is 0) then
set killProcess to (paragraph 1 of (do shell script "ps -aex |
grep ScreenSaver.framework | grep -v grep | awk '{ print $1 }'"))
set deadResult to do shell script ("kill -9 " & killProcess)
try
if (volName is not in (list disks)) then mount volume
serverName as user name userID with password userPW
on error errtxt number errnum
sendMessage("Could not mount the server volume " & volName & ".", errtxt)
set keepgoing to false
end try
tell application "Finder"
--error handling eliminated to ID source of problem. Below
is a test to see if files exist
--try
alias (DBfolder & "db1.fp5")
alias (DBfolder & "db2.fp5")
(*on error errtxt number errnum
tell me to sendMessage("Could not find at least one of the
db files.", errtxt)
set keepgoing to false
end try*)
end tell
end if
ROUTINES WHICH NEED TO RUN:
- Send e-mail.
An Applescript kicks off which calls a Filemakers script to scan a
dabatase and send a bunch of e-mails.
- Backup databases
a) Log onto a server volume
b) Quit FMP
c) Copy FMP DBs to server volume
d) Log off of server volume
e) Restart FMP DBs
Filemaker behaves VERY BADLY when an Applescript tries to make it do
anything behind this screen saver. It locks up the machine so badly,
that I can't even ssh into it to reboot.
Thanks,
Gary
_______________________________________________
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.