• 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: Cocoa-JavaScript Application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa-JavaScript Application


  • Subject: Re: Cocoa-JavaScript Application
  • From: Shane Stanley <email@hidden>
  • Date: Sat, 19 Dec 2015 11:51:47 +1100

On 19 Dec 2015, at 11:07 AM, Paul Scott <email@hidden> wrote:
>
> It appears that a Cocoa-AppleScript application depends on AppleScriptObjC.framework, the AppleScriptObjectiveC category, and intrinsic Xcode support.

The Cocoa-AppleScript template is just a convenience. You can start with a normal Cocoa app template, add AppleScriptObjC.framework, modify main.m so that -loadAppleScriptObjectiveCScripts is called before main returns, then add and connect a suitable AS app delegate class. The only Xcode support is that it compiles .applescript files and treats appropriate handlers and properties as IBActions and IBOutlets.

I recall that someone built a JXA-based Cocoa app not long after it was released, so it can be done. They may have used an Objective-C app delegate to bootstrap things; I can't recall.

--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


  • Prev by Date: Re: AS Library Question
  • Next by Date: Re: Cocoa-JavaScript Application
  • Previous by thread: Re: String recognition with trigger
  • Next by thread: Re: Cocoa-JavaScript Application
  • Index(es):
    • Date
    • Thread