How can I use AppleScript to type in a specified area on the screen? I've tried the keystroke
command, but it doesn't seem to work. Also, how can I use AppleScript to display an image? Here is the code I have so far:
set theText to text returned of (display dialog "Put what you want to autotype here." default answer "" buttons {"OK", "cancel"} default button 1)
display dialog "select where you want me to type " & theText & " Your text will be typed in the area selected. you have 10 seconds to select once you click 'OK'" buttons {"OK"}
delay 10
say "typing"
--command for typing here
end
end
end