(*
Bugs:
Does not like no selection: no real way to get the selection from SEE anyway.
Sometimes does not execute if called from Script Menu. Intermittant.
*)-- If called from Script Menu, need to do this.tellapplication"SubEthaEdit"activatetellapplication"System Events"tokeystroke"C"using{commanddown}endtellsettheStartto(the clipboard)set the clipboard to(myreplace(theStart,"\"","'"))beep-- Another way of the Replace Function being called:-- set the clipboard to (replaceText from theStart to "'" instead of "\"")onreplace(theText,find,replace)setOldDelimstoAppleScript's text item delimiterssetAppleScript's text item delimiterstofindsetnewTexttotextitemsoftheTextsetAppleScript's text item delimiterstoreplacesettheResulttonewTextas textsetAppleScript's text item delimiterstoOldDelimsreturntheResultendreplace-- Alternate version of replace()toreplaceTextfromtheTexttoreplaceinstead offindsetOldDelimstoAppleScript's text item delimiterssetAppleScript's text item delimiterstofindsettheTexttotextitemsoftheTextsetAppleScript's text item delimiterstoreplacesettheTexttotheTextas textsetAppleScript's text item delimiterstoOldDelimstheTextendreplaceText