Format That <Formatting>
SCRIPT {
if _arg1 = "Capitals" then _arg1 = "Cap"
if _arg1 = "Initial Caps" then _arg1 = "Cap"
if _arg1 = "Caps" then _arg1 = "Cap"
if _arg1 = "Uppercase" then _arg1 = "All-Caps"
if _arg1 = "Lowercase" then _arg1 = "No-Caps"
if _arg1 = "Cap" then HeardWord "\Cap","That"
if _arg1 = "All-Caps" then HeardWord "\All-Caps","That"
if _arg1 = "No-Caps" then HeardWord "\No-Caps","That"
if _arg1 = "With Hyphens" then HeardWord "Hyphenate","That"
if _arg1 = "Without Spaces" then HeardWord "Compound","That"
if _arg1 = "Centered" then
SendKeys "{Ctrl+t}"
SendKeys "{Ctrl+e}"
SendKeys "{Shift+Ctrl+r}"
end if
if _arg1 = "Center Aligned" then
SendKeys "{Ctrl+t}"
SendKeys "{Ctrl+e}"
SendKeys "{Shift+Ctrl+r}"
end if
if _arg1 = "Left Aligned" then
SendKeys "{Ctrl+t}"
SendKeys "{Ctrl+l}"
SendKeys "{Shift+Ctrl+r}"
end if
if _arg1 = "Right Aligned" then
SendKeys "{Ctrl+t}"
SendKeys "{Ctrl+r}"
SendKeys "{Shift+Ctrl+r}"
end if
if _arg1 = "Bullet Style" then
SendKeys "{Ctrl+t}"
SendKeys "{Alt+o}b"
SendKeys "{Shift+Ctrl+r}"
end if
}