Friday, April 1, 2011

AppleScript 에서 한글 모아쓰기 해주는 법

질문 : 파일명을 복사할때 한글 자모가 모두 떨어지는데 모아쓰기 해주려면?
요약 : 클립보드를 이용하면 간단하다.
답 :
on myHangulMoaSSugi(txt)
set temp to the clipboard --클립보드 피신
set the clipboard to txt -- 한글 모아주기를 위해 클립보드로 옮김
set txt to the clipboard as string -- 한글 모아주기가 완성.
set the clipboard to temp -- 클립보드 restore
return txt
end myHangulMoaSSugi
키워드 : copy paste 클립보드 myHangunMoaSSugi
관련링크 : AppleScript에서 Clipboard 사용하기

No comments:

Post a Comment