Re: Adding scripting support for custom records

Alex Zavatone

How do you plan to consume it? As an array, dictionary? You can even save it out as a pList and read it off media if you wish. You can even serialize it to JSON or XML. There even is serializing through NSCodable, but in this case, you would need to have the format to deserialize in your target app.

Actually, I wonder if you could use app groups and simply make the data common between apps running in that group or are you planning on accessing the data through scripting?

How do you wish to read the data in?

On May 6, 2019, at 10:42 PM, Steve Mills via Groups.Io <sjmills@...> wrote:

What's the best way to return data from a scriptable app when the property is a record-type that's declared in the sdef? It corresponds to an Objective-C class. I ended up adding a separate property to the owner class that returns the data in an NSDictionary and using that property in the sdef instead of the real property, which is the normal Objective-C class. But it feels like there should be a more simple way that I haven't been able to glean from the spotty documentation I've found so far.

I feel so dumb about this, having previously been about half responsible for implementing the AppleScript support and recordability for one of the best page layouts apps ever written back in the Carbon days.

Steve Mills
Drummer, Mac geek

Join { to automatically receive all group messages.