Shut down computer running 10.1.3
Shut down computer running 10.1.3
- Subject: Shut down computer running 10.1.3
- From: brian mather <email@hidden>
- Date: Sat, 14 Sep 2002 19:02:06 -0400
What am I missing in my attempts to script/automate my computer to shut
down?
I don't need anything fancy and previously used the energy saver control
panel's scheduled shut down feature to accomplish this.
As I can't seem to find that same feature in OS 10.1.3 (maybe I'm just
missing it???) I've tried unsuccessfully to build a stay open applet that
checks every hour to see what time it is and at the right time shut down
psuedo code -
on idle
set now to the time of current date
if now is 11:00pm then
tell app finder
shut down
end tell
end if
return 3600
end
No effect.
also tried from the terminal to make script (saved as text and made
executable (chmod a+x <file>) whose only text was shut down in a tell finder
block which seemed promising when executed from the terminal manually:
/usr/bin/osascript ~/test
terminal threw up a quit dialog box warning of active windows I closed
anyway and poof system recursively quit my open apps and then shut down.
Saved the command as a shell script (chmod it to executable, of course) and
added it to my crontab and it fails with an execution error.
Here's the mail I receive detailing the failure:
Subject: Cron <mather@localhost> /usr/bin/osascript
~/Library/AppleScripts/test
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/Users/mather>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=mather>
X-Cron-Env: <USER=mather>
execution error: Finder got an error: Application isn't running. (-600)
Any help greatly appreciated.
Thanks-
brian
_______________________________________________
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.