• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Sintax for current date - Need help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Sintax for current date - Need help
      • From: Yvan KOENIG <email@hidden>
    • Re: Sintax for current date - Need help
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: minimum function?
  • Next by Date: Re: Sintax for current date - Need help
  • Previous by thread: Re: Apple script to automatically update folder's content from server.
  • Next by thread: Re: Sintax for current date - Need help
  • Index(es):
    • Date
    • Thread