i'm new to programming and i'm trying to create a cocoa-applescript application with a text view. the idea is that the user writes down there comments and clicks send. this then sends me an email with there comments.
i think in normal apple script this would be
set the_dialog to "enter your comments here"
set email to text returned of (display dialog the_dialog default answer "" buttons {"Cancel", "OK"} default button 2)
tell application "Mail"
set theMessage to make new outgoing message with properties {visible:false, subject:"My Subject", content:email}
tell theMessage
make new to recipient at end of to recipients with properties {name:"example", address:"example@example.co.uk"}
send theMessage
end tell
end tell
but how do i get this to my text view
i think in normal apple script this would be
set the_dialog to "enter your comments here"
set email to text returned of (display dialog the_dialog default answer "" buttons {"Cancel", "OK"} default button 2)
tell application "Mail"
set theMessage to make new outgoing message with properties {visible:false, subject:"My Subject", content:email}
tell theMessage
make new to recipient at end of to recipients with properties {name:"example", address:"example@example.co.uk"}
send theMessage
end tell
end tell
but how do i get this to my text view