Hey guys im trying to make my program MultiAlarm prevent a sleep so what i came up with was to make it schedule a wake up every 10 seconds or so, my problem is making the time have a extra 10 seconds on it
on getShell(thecmd)
set theName to thecmd
return {theName}
end getShell
set the_date to getShell(do shell script "date -u +%m/%d/%y")
set the_time to getShell(do shell script "date +%H:%M:%S")
do shell script "sudo pmset schedule wakeorpoweron \"" & the_date & " " & the_time & "\" \"MultiAlarm\"" with administrator privileges