On Fri, 13 Mar 2009 14:23:37 +0000, Karen van Eck
<karen.van....@sonoco-trident.com> said:
>We have a lot of code in libraries in Applescript. Now starting to
>look at using Cocoa to move forward, as we are really using
>Applescript to pretty much its limit.
>
>But it is not a short term solution to rewrite all our Applescript
>libraries in Objective-C. We need to be able to use Objective-C
>programs to load and execute our Applescripts.
>
>I've managed to get a program to execute an Applescript and to execute
>a handler in an Applescript.
>
>But most of our libraries are saved as Script Objects. Please could
>someone point me in the right direction for executing a subroutine
>inside a script object in an Applescript.

Useful code here:

http://lists.apple.com/archives/applescript-implementors/2001/Apr/msg00001.h
tml

There's an Objective-C version of calling the 'ascr/psbr' Apple event on p.
479 of my book, and Ken Ferry has a wonderful set of convenience methods
(http://homepage.mac.com/kenferry/software.html). m.

-- 
matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to