AppleScript名:文字列中に指定した文字列があるか検索する |
— Created 2015-01-26 by Takaaki Naganoya — 2015 Piyomaru Software use AppleScript version "2.4" use scripting additions use framework "Foundation" set aString to current application’s NSString’s stringWithString:"長野谷 隆昌" set aRange to aString’s rangeOfString:"隆" return aRange –>{location:4, length:1} if aRange’s location() = current application’s NSNotFound then current application’s NSLog("Not Found") else current application’s NSLog("Found") end if |
More from my site
(Visited 21 times, 1 visits today)