Applescript run code at specific time I tried different way to run a script on a specific schedule / time,
I found Lingon quite handy, I also try using calendar but the result was very bad.

I wrote this : 

repeat
    set myDate to date string of (current date)


    set myTime to time string of (current date)

    set myDateTime to myDate &amp; " - " &amp; myTime

    if myTime &gt; "11:30:00" and myTime &lt; "11:30:10" then
        display notification "demo - This is the time"
    end if
end repeat


which seems to work fine but obviously, generate a few notification.
How can I run a script only once when this condition is found ?

I thought I can play with some delay but then I'm worried I would miss the time condition.
This is just a slightly more efficient re-hash of the existing answer...

set gIsThisTime to false

repeat until gIsThisTime is true
    delay 60
    set myTime to time string of (current date)
    if myTime &gt; "1:15:00 pm" and myTime &lt; "1:20:00 pm" then
        set gIsThisTime to true
    end if
end repeat

set myDate to date string of (current date)
set myDateTime to myDate &amp; " - " &amp; myTime
display notification "time = " &amp; myDateTime


Notes:
leaving out am/pm means it will trigger on either am or pm, whichever it hits first
it doesn't work on 24-hour clock, so 13:15:00 will not trigger