what is wrong with this applescript in Xcode
Code:
property textView : missing value
property textField : missing value
property textView1 : missing value
property textField1 : missing value
property textView2 : missing value
property textField2 : missing value
on mail1_(sender)
set textFieldValue to textField's |stringValue|()
set textviewvalue to textview's string()
tell application "Mail"
set theMessage to make new outgoing message with properties {visible:false, subject:textFieldValue, content:textviewvalue}
tell theMessage
make new to recipient at end of to recipients with properties {name:"example", address:"example@example.com"}
send theMessage
end tell
end tell
end mail1_
on mail2_(sender)
set textFieldValue1 to textField1's |stringValue|()
set textviewvalue1 to textview1's string()
tell application "Mail"
set theMessage to make new outgoing message with properties {visible:false, subject:textFieldValue1, content:textviewvalue1}
tell theMessage
make new to recipient at end of to recipients with properties {name:"example", address:"example@example.com"}
send theMessage
end tell
end tell
end mail2_
on mail3_(sender)
set textFieldValue2 to textField2's |stringValue|()
set textviewvalue2 to textview2's string()
tell application "Mail"
set theMessage to make new outgoing message with properties {visible:false, subject:textFieldValue2, content:textviewvalue2}
tell theMessage
make new to recipient at end of to recipients with properties {name:"example", address:"example@example.com"}
send theMessage
end tell
end tell
end mail3_