my program is:
display dialog "VIRUS DETECTED" buttons {"Slow os x to handle virus", "Crash CPU"} default button 2
if the button returned of the result is "Slow os x to handle virus" then
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
else
sleep
end if
as you can see its for a fake virus. just for fun be I get the error "Expected end of line but found identifier." and it points to the highlighted above word: dialog. how can I fix this?
display dialog "VIRUS DETECTED" buttons {"Slow os x to handle virus", "Crash CPU"} default button 2
if the button returned of the result is "Slow os x to handle virus" then
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
diplay dialog "Error, Please force quit" buttons {"Ok"}
else
sleep
end if
as you can see its for a fake virus. just for fun be I get the error "Expected end of line but found identifier." and it points to the highlighted above word: dialog. how can I fix this?