THASOC External

Here is where the magnanimous folks that create externals post them (.zip archives only please).

THASOC External

Postby sctell » Wed Nov 23, 2011 6:20 am

Hi,

Here is a small external that allows you to run ApplescriptObjC scripts from SC thus allowing direct access to Cocoa frameworks.

There is a small amount of fiddling necessary to create a bundle placeholder as I have not been able to figure out how to pass a string (ApplescriptObjC script) from SC as the external relies on a Cocoa call [tBundle loadAppleScriptObjectiveCScripts], but overall it is quite easy to get going.

I have put a few examples and some instructions in the SC project.

If you have any questions please post them here.

A solution to the [tBundle loadAppleScriptObjectiveCScripts] issue would be fantastic.

All the best

Terry

THASOCTest.zip
(32.1 KiB) Downloaded 251 times
sctell
 
Posts: 1134
Joined: Sun Jul 06, 2008 10:41 am

Re: THASOC External

Postby sandrobilbeisi » Fri Dec 15, 2017 1:40 am

are there any updates to this or to Terry Heaford's other externals ?
sandrobilbeisi
 
Posts: 35
Joined: Mon Dec 04, 2017 1:11 am

Re: THASOC External

Postby sctell » Fri Dec 15, 2017 4:11 am

I have certainly moved away from externals that involve Cocoa windows superimposed upon Carbon windows.

The only external that I actually use myself is a SC port of FMDB which is a Cocoa port of SQLite.

I still use this external, all others have fallen by the wayside.

You have posted this in reply to an AppleScript Objective C external I did many years ago.
Is this your primary interest here.

I say that because in the 4.8 beta Mark has included the ability to run AppleScript Objective C scripts from SC.

Here are a couple of examples:

http://forums.supercard.us/viewtopic.php?f=17&t=2754&p=11914&hilit=NSMutableArray+Test#p11914

http://forums.supercard.us/viewtopic.php?f=17&t=2755&p=11915&hilit=NSMutableArray+Test#p11915


One is for NSMutableDictionary and the other for NSMutableArray.

All the best

Terry
sctell
 
Posts: 1134
Joined: Sun Jul 06, 2008 10:41 am

Re: THASOC External

Postby sandrobilbeisi » Fri Dec 15, 2017 5:20 am

thanks for the heads up !

are you going to eventually release your externals as open source ?
sandrobilbeisi
 
Posts: 35
Joined: Mon Dec 04, 2017 1:11 am


Return to XCmds, XFcns, and XRtns

Who is online

Users browsing this forum: No registered users and 1 guest