apple scrypt questions

hey guys, i am trying to write a scrypt to run my chacha account i got the parts that i have worked on so far to work but when i added the timer i keep getting an applescrypt error that says:
Can’t get item 2 of {text returned of 60}

here is my scrypt below, can any body tell me how to fix it and why its wrong?



set theMinutes to (display dialog "How long would you like to run?" default answer "" buttons {"Start", "Cancel"} default button 1)
set theMinutes to (the (text returned of the result) * 60)
copy the text returned of the result as list to {the text_returned, button_pressed}
if the button_pressed is "Start" then
	delay 1
	tell application "Firefox"
		activate
		open location "https://universe.chacha.com"
		tell application "System Events"
			delay 3
			keystroke tab
			keystroke "Guitarfreak"
			keystroke tab
			keystroke "xxxxxxxxxxxxxxxx"
			keystroke tab
			keystroke "xxxxx"
			delay 1
			keystroke return
			delay theMinutes
			display dialog "end"
		end tell
	end tell
end if



Model: imac
AppleScript: 2.4.1
Browser: Safari 535.2
Operating System: Mac OS X (10.7)

set myresult to (display dialog "How long would you like to run?" default answer "" buttons {"Start", "Cancel"} default button 1)
set theMinutes to (text returned of myresult) * 60
set button_pressed to button returned of myresult