JavaScript for Automation (JXA) Anyone?

I can't seem to find any more-or-less "official" place to discuss JavaScript for Automation (JXA). I've managed to develop some level of skill at JXA, although I have a long way to go.


What I want to know is, is there some place I can go to both contribute my knowledge, and get some answers?


Here's one example of a situation where I have no idea where to go to for answers:


Let's say I have an object that I want to turn into a plist XML string. I use code like this:


function serializeObjectToXmlPlist(obj) {
     var data = $.NSPropertyListSerialization
          .dataWithPropertyListFormatOptionsError(
               $(obj), $.NSPropertyListXMLFormat_v1_0, 0, null);
     var nsString = $.NSString.alloc
          .initWithDataEncoding(data, $.NSUTF8StringEncoding);
     return $(nsString).js;
}


The problem with this code is that if there are any nodes of type "data" (which contain base64-encoded strings), their content does not get serialized to the XML string.


Where do I go to find answers to questions like this?


Thanks.

  • Hey Dan, I never knew about this forum until today when I discovered searching for something about JXA. I see it has been 4 years since your post, but still no answers.

    We should notify others about this forum.

  • Agreed, we should notify others about this forum! I'd rather be finding answers here than on StackOverflowYesIWillAcceptCookies or on Keyboard Maestro or Script Debugger forums.

Add a Comment