AppleScript名:配列をソートする(1D) |
— Created 2015-09-02 by Takaaki Naganoya — 2015 Piyomaru Software use AppleScript version "2.4" use scripting additions use framework "Foundation" set anArray to current application’s NSArray’s arrayWithObjects_(1, 2, 3) –> (NSArray) {1, 2, 3} –ソートする set sortRes1 to anArray’s sortedArrayUsingSelector:"compare:" –逆順の場合には、sortDescriptorを指定する必要がある –> (NSArray) {1, 2, 3} –compare: –caseInsensitiveCompare: –localizedCompare: –localizedCaseInsensitiveCompare: –localizedStandardCompare: |
More from my site
(Visited 109 times, 1 visits today)