Re: Sintax for current date - Need help
Re: Sintax for current date - Need help
- Subject: Re: Sintax for current date - Need help
- From: Yvan KOENIG <email@hidden>
- Date: Thu, 7 Apr 2005 20:10:18 +0200
Le 7 avr. 2005 , à 18:20, Bernardo Hoehl a écrit :
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
Hello
Your code seems to be correct.
Just for the fun, here is an other syntax:
set currentdate to current date
if currentdate > date "06:00" in date (date string of currentdate) and currentdate < date "17:00" in date (date string of currentdate) then
beep -- do something, kill whatever
end if
Yvan KOENIG
_______________________________________________
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