Re: Cocoa-JavaScript Application
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