General Transforms
https://sites.google.com/site/icuprojectuserguide/transforms/general
Script/Language
Arabic
Armenian
Bopomofo
Cyrillic
Georgian
Greek
Han
Hangul
Hebrew
Hiragana
Indic
Jamo
Katakana
Syriac
Thaana
Thai
use AppleScript version "2.6"
use framework "Foundation"
use scripting additions
doLogView()
property objMe : a reference to current application
property objNSString : a reference to objMe's NSString
set strText to "ウツクシイニホンゴABCDEFG1234567890" as text
set ocidNSStringText to objNSString's stringWithString:strText
log ocidNSStringText as text
log ocidNSStringText's className() as text
set ocidApplyText to (ocidNSStringText's stringByApplyingTransform:"Katakana-Hiragana" |reverse|:false)
log ocidApplyText as text
log ocidApplyText's className() as text
return ocidApplyText as text
to doLogView()
tell application "System Events"
set listAppList to title of (every process where background only is false)
end tell
repeat with objAppList in listAppList
set strAppList to objAppList as text
if strAppList is "スクリプトエディタ" then
tell application "Script Editor"
if frontmost is true then
try
tell application "System Events" to click menu item "ログを表示" of menu "表示" of menu bar item "表示" of menu bar 1 of application process "Script Editor"
end try
end if
end tell
end if
end repeat
end doLogView