• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Calling Script Objects in Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling Script Objects in Applescript


  • Subject: Re: Calling Script Objects in Applescript
  • From: Matt Neuburg <email@hidden>
  • Date: Sat, 14 Mar 2009 10:41:47 -0700
  • Thread-topic: Calling Script Objects in Applescript

On Fri, 13 Mar 2009 14:23:37 +0000, Karen van Eck
<email@hidden> 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 = email@hidden, <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 (email@hidden)

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:

This email sent to email@hidden

  • Prev by Date: Re: Messages between Threads
  • Next by Date: Re: Performance problem with GC enabled
  • Previous by thread: Re: Calling Script Objects in Applescript
  • Next by thread: Type Declaration With Protocol
  • Index(es):
    • Date
    • Thread