My scriptable app iClip can take clipboard data arguments in the form of raw strings (those that contain both the type as a 4-char-code along with the corresponding data) but it can’t take NSData types currently.
Now, I have data in an ObjC’s NSData object and like to convert it into a raw string so that I can pass that to iClip’s functions that take an “any” parameter.
It’s binary data so I can’t just convert it into a textual string.
How can I do that, provided I know the 4-char type code for it?
(See also my related question on StackOverflow)