copy from result to note pad

I’m trying to write a basic script to find the time string and display it in a text program. I have figured out how to display it in the result window, and even get the script to say it on command, but i want to display it as well. (if you haven’t already noticed, I am an novice.)

display dialog works.

display dialog "the date is" & var_name

if you want to writ it to a file then just

write var_name to "hard disk:myfile" starting at eof

Notes: var_name is the variable yo have stored your data in.
Make sure simpletext file or teachtext called myfile in the place you say in the script.
This method is usefull for writing logs
regards
Rick kenny

Which text program do you want it displayed in?