AppleScript名:1D Listの一部を取り出す |
— Created 2016-11-08 by Takaaki Naganoya — 2016 Piyomaru Software use AppleScript version "2.4" use scripting additions use framework "Foundation" set anArray to current application’s NSMutableArray’s arrayWithArray:{"1", "2", "3", "4", "5"} set anIndex to current application’s NSIndexSet’s indexSetWithIndexesInRange:(current application’s NSMakeRange(1, 3)) set cList to (anArray’s objectsAtIndexes:anIndex) as list –> {"2", "3", "4"} |
More from my site
(Visited 28 times, 1 visits today)