Nic*_*ico 5 macos cocoa applescript objective-c
在以前的OS X版本(10.6之前的版本)中,可以通过applescript(“ Applescript Studio”)中的“ call method”命令来调用Cocoa方法。例如,这种方式:
“ Applescript编辑器”(10.6)中的脚本解释器不理解命令“ call method”。-“ Applescript编辑器”(10.6)是否等效?
set theURL to "http://www.apple.com"
set URLWithString to (call method "stringByAddingPercentEscapesUsingEncoding:" of theURL with parameter 30)