How to call Cocoa Methods from Applescript under Mac OS X 10.6

Posted by Nico on Stack Overflow See other posts from Stack Overflow or by Nico
Published on 2010-12-26T12:36:17Z Indexed on 2010/12/28 8:53 UTC
Read the original article Hit count: 269

Filed under:
|

In former Mac OS x versions it was possible to call Cocoa methods via the "call method" command in applescript ("Applescript Studio"). E.g. this way: set theURL to "http://www.apple.com" set URLWithString to (call method "stringByAddingPercentEscapesUsingEncoding:" of theURL with parameter 30) The script interpreter in the "Applescript Editor" (10.6) does not understand the command "call method". - Is there an equivalent for "Applescript Editor" (10.6)?

© Stack Overflow or respective owner

Related posts about snow-leopard

Related posts about applescript