AppleScript名:ASOCで文字列を%エンコーディング文字列に変換する |
use AppleScript version "2.4" — Yosemite (10.10) or later use framework "Foundation" use scripting additions set aString to current application’s NSString’s stringWithString:"The time has come for all good “men”" set aString to (aString’s stringByAddingPercentEncodingWithAllowedCharacters:(current application’s NSCharacterSet’s URLQueryAllowedCharacterSet())) as text –> "The%20time%20has%20come%20for%20all%20good%20%E2%80%9Cmen%E2%80%9D" |
More from my site
(Visited 25 times, 1 visits today)