AppleScript名:テキストの一部を取り出すじっけんASOC |
— Created 2017-10-12 by Takaaki Naganoya — 2017 Piyomaru Software use AppleScript version "2.4" use scripting additions use framework "Foundation" set aStr to current application’s NSString’s stringWithString:"0123456789" set aRes to (aStr’s substringToIndex:1) as string –> "0" set bRes to (aStr’s substringFromIndex:4) as string –> "456789" set cRes to (aStr’s substringWithRange:(current application’s NSMakeRange(3, 6))) as string –> "345678" |
More from my site
(Visited 17 times, 1 visits today)