Re: Sintax for current date - Need help
Re: Sintax for current date - Need help
- Subject: Re: Sintax for current date - Need help
- From: Bernardo Hoehl <email@hidden>
- Date: Fri, 8 Apr 2005 07:44:29 -0300
Hello Yvan, Axel and Clark,
Thank you for replying to my post.
You all have beeen very helpfull.
Bernardo
========================
On 07 Apr, 2005, at 3:10 PM, Yvan KOENIG wrote:
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
_______________________________________________
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