AppleScript名:2ファイルの内容比較(UTF-8 String) |
— Created 2016-03-22 by Takaaki Naganoya — 2016 Piyomaru Software use AppleScript version "2.4" use scripting additions use framework "Foundation" set aPOSIX to POSIX path of (choose file with prompt "Select Text File A") set bPOSIX to POSIX path of (choose file with prompt "Select Text File B") set aStr to current application’s NSString’s stringWithContentsOfFile:aPOSIX encoding:(current application’s NSUTF8StringEncoding) |error|:(missing value) set bStr to current application’s NSString’s stringWithContentsOfFile:bPOSIX encoding:(current application’s NSUTF8StringEncoding) |error|:(missing value) set aRes to (aStr’s isEqualToString:bStr) as boolean |
More from my site
(Visited 87 times, 1 visits today)