i need help with my app

how do i make the text typed in 3 textfields send to my email with the click of one botton? here is the script i have in the appdelegate.applescript file

property parent : class "NSObject"
	property textField1 : missing value
	property textField2 : missing value
	property textField3 : missing value
	on setTextField_(sender)
		tell application "Mail"
			set theInfo to the text returned in textField1 & textField2 & textField3
			set newMessage to make new outgoing message with properties {subject:"", content:theInfo, visible:false}
			tell newMessage
				make new to recipient at end of every to recipient with properties {address:"mvm83@live.com"}
				delay 0
			end tell
		end tell
	end setTextField_

so far this isn’t working

Model: Macbook Pro
AppleScript: Version 2.3 (118)
Browser: Firefox 9.0.1
Operating System: Mac OS X (10.6)

As I said in one of your previous posts, you get the string in a text field with stringValue(). So try the following in place of the line above:

set theInfo to  textField1's stringValue() as text  & textField2's stringValue() as text & textField3's stringValue() as text 

Please, and this goes for all of you out there, don’t write “so far this isn’t working” or “this doesn’t work” or other uninformative pleadings! If something isn’t working, you need to describe what is happening and post any error messages.



aside of the terminology problems it’s generally recommended to keep ASOC code out of application tell blocks