Convert Script to Markup Code test

Convert Script to Markup Code is an amazing script. I used it to post the script below to retain the same format the script had in the Script Editor. Many thanks go out to the author, Jonathan Nathan. Feel free to download and use this tool to post your scripts to the BBS. Nice job Jon ;�)

http://scriptbuilders.net/category.php?id=1349

display dialog "Enter an Area Code" default answer ""
set cod to (text returned of result)
set foo to do shell script "grep " & cod & " /usr/share/misc/na.phone"
try
	set OldDelims to AppleScript's text item delimiters
	set AppleScript's text item delimiters to {return}
	set bar to text items of foo as list
	set AppleScript's text item delimiters to OldDelims
on error
	set AppleScript's text item delimiters to OldDelims
end try
choose from list bar

Reconverted.

Thanks. I’ve been writing scripts for nearly 10 years and this is one of my all-time favorites.

Jon