Thank you all for your help earlier regarding executing scripts via ip address, I could not have done it without your help and am now pointed in the right direction. However, I am having trouble with the script below, every time I try to run it, I get the following error:
error "The variable speakHour is not defined." number -2753 from "speakHour"
I got this code about a year ago, it was written by someone else, and I am unfamiliar with it. Any help would be greatly appreciated.
Thank you,
Porter Slice
set theBoolean to "True"
say "What Time Would You Like To Wake Up?" using "Alex"
set theTime to the text returned of (display dialog "What Time Would You Like To Wake Up?" default answer "6 30")
if the length of theTime is 1 then
set theHour to "0" & theTime as string
set theMinutes to "00" as string
else if the length of theTime is 2 then
set theHour to theTime as string
set theMinutes to "00" as string
else if the length of theTime is 3 then
set theHour to "0" & character 1 of theTime as string
set theMinutes to characters 2 thru 3 of theTime as string
else if the length of theTime is 4 then
set theHour to characters 1 thru 2 of theTime as string
set theMinutes to characters 3 thru 4 of theTime as string
else
say "That is an un known time" using "Alex"
say "You're alarm has not been set" using "Alex"
return
end if