AppleScript名:配列に指定要素が含まれているかチェック |
— 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 bRes to (anArray’s containsObject:1) as boolean –> true set cRes to (anArray’s containsObject:100) as boolean –> false |
More from my site
(Visited 39 times, 1 visits today)