• 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: Call Objective-C methods from any script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Call Objective-C methods from any script


  • Subject: Re: Call Objective-C methods from any script
  • From: Paul Berkowitz <email@hidden>
  • Date: Mon, 17 Jan 2005 14:35:31 -0800

On 1/17/05 1:40 PM, "daniel" <email@hidden> wrote:

> If you make the LSBackgroundOnly flag true for the app, it behaves
> almost just like a scripting addition.  The only caveat being you have
> to address it as an application, still.  I've posted my very simple
> app, named "AppleScriptKit":
>
> http://www.red-sweater.com/AppleScriptKit.zip
>
> Simply download this and leave it on your computer. Now you can use all
> of the AppleScript studio methods by using tell application
> "AppleScriptKit" blocks!

One more caveat is that it will only work in AppleScript where the final
result is a data type that is bridged back to a regular AS type : Unicode
text, integer, real, list, record, date. Probably that's all you'd be
looking for in any case. I guess that a multiline script where intermediate
results are NS classes which bridge to AS Studio classes will work as they
do in Studio , though.

--
Paul Berkowitz


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Call Objective-C methods from any script (From: daniel <email@hidden>)

  • Prev by Date: Re: Call Objective-C methods from any script
  • Next by Date: Re: Call Objective-C methods from any script
  • Previous by thread: Re: Call Objective-C methods from any script
  • Next by thread: Re: Call Objective-C methods from any script
  • Index(es):
    • Date
    • Thread