(defun c:te ()
(initget "S1 S2 S3 D1 D2 D3 F1 F2 F3")
(setq i (getkword "\n左上<S1>;左中<S2>;左下<S3>;中上<D1>;中中<D2>;中下<D3>;右上<F1>;右中<F2>;右下<F3>"))
(cond
((= i "S1") (setq ent (ssget))(command "justifytext" ent "" "tl"))
((= i "S2") (setq ent (ssget))(command "justifytext" ent "" "ml"))
((= i "S3") (setq ent (ssget))(command "justifytext" ent "" "bl"))
((= i "D1") (setq ent (ssget))(command "justifytext" ent "" "tc"))
((= i "D2") (setq ent (ssget))(command "justifytext" ent "" "mc"))
((= i "D3") (setq ent (ssget))(command "justifytext" ent "" "bc"))
((= i "F1") (setq ent (ssget))(command "justifytext" ent "" "tr"))
((= i "F2") (setq ent (ssget))(command "justifytext" ent "" "mr"))
((= i "F3") (setq ent (ssget))(command "justifytext" ent "" "br")))
(princ))