tell application "BBEdit"
activate
replace "ä" using "auml;" searching in text 1 of text document "f_action_main.html" options {search mode:literal, starting at top:true, wrap around:false, backwards:false, case sensitive:true, match words:false, extend selection:false}
replace "Ä" using "Auml;" searching in text 1 of text document "f_action_main.html" options {search mode:literal, starting at top:true, wrap around:false, backwards:false, case sensitive:true, match words:false, extend selection:false}
replace "ö" using "ouml;" searching in text 1 of text document "f_action_main.html" options {search mode:literal, starting at top:true, wrap around:false, backwards:false, case sensitive:true, match words:false, extend selection:false}
replace "Ö" using "Ouml;" searching in text 1 of text document "f_action_main.html" options {search mode:literal, starting at top:true, wrap around:false, backwards:false, case sensitive:true, match words:false, extend selection:false}
replace "ü" using "uuml;" searching in text 1 of text document "f_action_main.html" options {search mode:literal, starting at top:true, wrap around:false, backwards:false, case sensitive:true, match words:false, extend selection:false}
replace "Ü" using "Uuml;" searching in text 1 of text document "f_action_main.html" options {search mode:literal, starting at top:true, wrap around:false, backwards:false, case sensitive:true, match words:false, extend selection:false}
end tell
It is a recorded macro in Bbedit and confuses me, because it focus on a special document and I don’t know if I can use it for any other document. So I thought:
I would like to turn this script to a more general drag and drop script for replacing german special chars of any document I drop over, but I don’t know how to request it. All I know is, that I have to change the 'searching in text 1 of text document “f_action_main.html” ’ string to a more general parameter set.
Can somebody please help me with this snippet a lil bit?
thanks in advance,
LaSchmoove
Model: G5
Browser: Safari 312
Operating System: Mac OS X (10.3.9)