-- This is a listing of an application described and downloadable at kwiniec's Firefox Fixes.

-- Mailto is an AppleScript application to make clicking on an email address in a Web page copy it to the clipboard instead of opening a mail application.  For Firefox, go to Firefox > Preferences > Applications > mailto and change "Use Mail (default)" to "Use Mailto" (or to "Use other..." and find Mailto).  Script copyleft 2011 Kenneth Winiecki, Jr. under Creative Commons Attribution http://creativecommons.org/licenses/by/3.0/ .

on open location mailtostr
	try
		set rtnstr to display dialog "Approve or change text to be copied:" buttons {"Copy", "Cancel"} ¬
			default answer text 8 thru end of mailtostr default button "Copy" cancel button "Cancel" with title "Mailto.app"
		tell application "Finder" to set the clipboard to text returned of rtnstr
	end try
end open location