AppleScript名:指定文字コードでファイル書き出し(EUC) |
use AppleScript version "2.4" use scripting additions use framework "Foundation" set aStr to "高島屋" set aPath to choose file name set cStr to current application’s NSString’s stringWithString:aStr set thePath to POSIX path of aPath set aRes to cStr’s writeToFile:thePath atomically:false encoding:(current application’s NSJapaneseEUCStringEncoding) |error|:(missing value) |
More from my site
(Visited 38 times, 1 visits today)