AppleScript名:リストの連結(arrayByAddingObjectsFromArray) |
— Created 2017-10-10 by Takaaki Naganoya — 2017 Piyomaru Software use AppleScript version "2.4" use scripting additions use framework "Foundation" –http://piyocast.com/as/archives/4892 property NSMutableArray : a reference to current application’s NSMutableArray set anArray to NSMutableArray’s new() repeat 10000 times set anArray to anArray’s arrayByAddingObjectsFromArray:{1, 2, 3, 4, 5, 6, 7, 8, 9, 10} end repeat return (anArray as list) –> {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10…….} –4.89sec |
More from my site
(Visited 21 times, 1 visits today)