-- Entering a string from the gui to be passed to a shell script. --CBT: 2009-02-10
display dialog "Enter parameters:" default answer "" buttons ["Cancel", "Ok"] default button 2

if the button returned of result = "Ok" then
	do shell script "
	echo " & the text returned of result
end if

open enter-string in the applescript editor