Posts

Post not yet marked as solved
0 Replies
1.2k Views
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.
Posted
by dagware.
Last updated
.