Re: AppleScriptObjC & Cocoa
Re: AppleScriptObjC & Cocoa
- Subject: Re: AppleScriptObjC & Cocoa
- From: Bob Stern via AppleScript-Users <email@hidden>
- Date: Mon, 22 Jun 2020 04:02:06 -0700
> On Jun 22, 2020, Jim Underwood wrote:
>
> Xojo does NOT use AppleScript as its native language, but it can run
> AppleScripts and get the results.
>
> Xojo has an excellent GUI IDE for quickly creating a very nice, Cocoa-based,
> GUI App. It is basically a GUI designer using drag/drop from a wide
> selection of controls onto a window.
Unless you have another reason to use Xojo, I’d recommend using Swift and Xcode
to create a GUI app. Swift’s “Process” class can run the osascript shell
command to run a compiled or uncompiled AppleScript file (.scpt or
.applescript), and Swift’s “Pipe” class can easily read the result returned by
the AppleScript.
Paul Hudson’s “Hacking with Mac” eBook is an easy way to learn to create simple
GUI elements in Swift. It’s half price ($20) until June 3o:
https://gumroad.com/l/hwmacos/wwdc20
Paul has also has a free tutorial covering the Swift language itself, i.e., the
platform-independent features:
https://www.hackingwithswift.com/sixty
Bob
_______________________________________________
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