Objective C Macros in AppleScript (os_log )

I’m trying to use the Objective C macro os_log() in AppleScript.

I can’t seem to figure it out at all. If I try to run it like a function, it bombs out.

The NSLog() function doesn’t provide enough customization into logging. I want to be able to define the subsystem. So I feel sort of stuck.

I’m afraid you are stuck. Compiler directives can’t be used in run-time code.