Tuesday, September 29, 2020

#1 2020-09-16 04:20:32 am

Fredrik71
Member
Registered: 2019-10-23
Posts: 399

Apple's CF opensource question

I'm not the man to know this... but I do like to know the answer.

I do understand AppleScriptObjC couldn't convert NSString to CFString.

But...

Apple released 5 years ago CF source.
https://github.com/opensource-apple/CF

Would it not be possible to make Framework from that source to support AppleScriptObjC

Shane or anyone...??

Regards.


I could teach you to cook but I couldn't do anything if you do not have desire or commitment for it.

Offline

 

#2 2020-09-16 05:40:47 am

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 6461

Re: Apple's CF opensource question

You don't need that -- anyone who knows Objective-C could write a framework that wraps those methods in Objective-C, which is what's required for ASObjC. But it would be a fairly large undertaking, with a small audience. On the whole, scripters don't seem to like using third-party offerings.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/
latenightsw.com

Offline

 

#3 2020-09-22 07:45:59 pm

technomorph
Member
Registered: 2017-12-14
Posts: 164

Re: Apple's CF opensource question

EDIT: I see your looking to use Dictionary Services in another post.
Have a look at my reply in that post.


Why are you needing to convert to CFString?
What are you trying to achieve? 
NSString is a pretty flexible class.

Folks maybe be able to provide you with solutions
If we understand what your trying to achieve.

Last edited by technomorph (2020-09-22 08:06:56 pm)

Offline

 

#4 2020-09-23 04:23:08 am

Fredrik71
Member
Registered: 2019-10-23
Posts: 399

Re: Apple's CF opensource question

technomorph wrote:

Why are you needing to convert to CFString?


I truly believe its possible to learn Objective-C from ASObjC and vice versa
And you point out, that was the case for you. And I believe so too.

So I find code in python that use pyObjC and Core Service framework of Dictionary Service.
https://developer.apple.com/documentati … guage=objc

I understand from the code it use CFString, Shane told me ASOBjC do not have it.

technomorph wrote:

What are you trying to achieve?


I was trying to use Core Service Framework with Dictionary Service, or any old framework smile
 

technomorph wrote:

NSString is a pretty flexible class..


Yes its, but AppleScript is also very old, things have changed. And what was possible is not
anymore vs working around the problems to find the solution.


I could teach you to cook but I couldn't do anything if you do not have desire or commitment for it.

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)