Improving an applescript app that removes Flash cookies

basically id really love to produce a list of the .sol (flash cookies) in the same dialog that contains the ‘Flush Away’ button (see script below). this would involve replacing the Terminal commands with applescript ones (I assume anyway)

any help would be loved and credit will be given both in the app and on the site that distributes it freely :slight_smile:

tell application "Terminal"
	do script "ls -R ~/Library/Preferences/Macromedia/Flash*Player | grep -v settings | grep -v preferences | grep .sol | cat -n"
	display dialog "Welcome to Flush. Do you want to flush these flash cookies into your Trash now?" buttons {"Not Now", "Flush Away!"} default button 2
	if button returned of result = "Flush Away!" then
		set fileToDelete to (((path to preferences folder) as text) & "Macromedia:Flash Player") as alias
		tell application "Finder"
			delete fileToDelete
		end tell
	end if
end tell

also having a dialog to say “No flash cookies were found” if none were indeed found would be good