Sintax for current date - Need help
Sintax for current date - Need help
- Subject: Sintax for current date - Need help
- From: Bernardo Hoehl <email@hidden>
- Date: Thu, 7 Apr 2005 13:20:09 -0300
Hi List!
I want to manage the users of a Mac, and stop them from using unauthorized applications during work time (between 09:00 and 17:00).
But I want to allow them to use these apps after work time.
I will declare a variable containning a list of forbiden applications, and check time of current date (if greater than 09:00 or smaller than 17:00), check what apps are open, and kill the app if necessary.
My difficulty is regarding the "if" sintax for current date.
Could you comment my lines bellow? Are they currect?
Thank you,
Bernardo Höhl
Rio de Janeiro - Brazil
set CurrentTime to time of (current date)
if CurrentTime > 32400 and CurrentTime < 61200 then
beep -- do something, kill whatever
end if _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden