Re: Shut down computer running 10.1.3
Re: Shut down computer running 10.1.3
- Subject: Re: Shut down computer running 10.1.3
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 14 Sep 2002 16:14:10 -0700
On 9/14/02 4:02 PM, "brian mather" <email@hidden> wrote:
>
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
Assuming you used real date types in your real code, did you actually test
for it being _exactly_ 11:00:00 pm? It's never going to be that. Test for it
being later than 11, and run it every 30 minutes.
And why arte you giving us pseudo-code for such a short script? Chances are
it's an error in your scripting. How can we help if you don't provide the
real code. Dates are tricky. You might also want to go to a quit handler to
do the shutting down. You know the Finder always asks if you want to quit
open apps, save documents, etc?
--
Paul Berkowitz
_______________________________________________
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.