AppleScript名:2ファイルの内容比較(Binary) |
— 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 File A") set bPOSIX to POSIX path of (choose file with prompt "Select File B") set aDat to current application’s NSMutableData’s dataWithContentsOfFile:aPOSIX set bDat to current application’s NSMutableData’s dataWithContentsOfFile:bPOSIX set aRes to (aDat’s isEqualToData:bDat) as boolean |
More from my site
(Visited 47 times, 1 visits today)