Variables from text boxes

im a new scripter and having a little bit of trouble. when a user types in something into a text box, i want to convert what they typed into a variable. i know you can do that with a dialog box, but i can’t figure out how to do it in interface builder. i know its prob really obvious, but if someone could let me know, i would greatly appreciate it. thanks. this is what i have for code:

on end editing theObject
set source_disk to the text returned of the result
end end editing

Assuming you’ve already made the appropriate connections in IB and the ‘end editing’ handler is working, try changing…

set source_disk to the text returned of the result

… to this:

set myVariable to contents of theObject

‘myVariable’ will now contain the text within your text field.

what would those connects in IB be?

You should really get to know the developer documentation. Particularly, ‘Building Applications with AppleScript Studio’

http://developer.apple.com/documentation/AppleScript/Conceptual/StudioBuildingApps/index.html

If you don’t know what connections to make in IB (this is basic), then you’re getting ahead of yourself with something as simple as your question.