NSLog neutered in the Unified Log in macOS 26 Tahoe - Options?

As of macOS 26 Tahoe, NSLog entries in the Unified Log are now redacted and treated as private. (The full entry is still reported in Xcode and to stdout.) Apple actually referred to this a “New Feature.” Apple is pushing people to use OSLog in Objective-C.

It is my understanding that OSLog is not available in AppleScriptObjC. If that is not correct, I would appreciate some information about how to do so.

As a replacement for NSLog, I have been using logger via a do shell script. I am curious if other AppleScriptObjC programmers are using alternatives.

Download and double-click profile as described here:

leo_r: I very much appreciate your responding. I found a recent article about this issue on Howard Oakley’s excellent site, “The Eclectic Light Company.” Howard has considerable information about the Unified Log; I don’t know why I didn’t look there prior to posting. In any event, below is a link to a recent article about using profiles in this way. Hopefully some people will find it useful.

https://eclecticlight.co/2025/10/06/inside-the-unified-log-4-log-entries/

1 Like

I’ve seen elsewhere where you just create your own NSLogXXX(). Function and then in its method is calls the OSLog function.

You’ll have to put that into some .h header that you can import into your AppleScript code like a framework.

Maybe you can add it to Shane’s Bridge Framework (forgot exactly the name)

After running into so many of these types of things over the years I’ve learned how to create my own Framework that has many classes related to DJing, iTunes stuff but tons of extensions on basic classes like

NSArray
-(BOOL)notEmpty;
-(BOOL)allItemsMatchPredicate:(NSPredicate*)aPred;
-(BOOL)foundItemsMatchingPredicate:(NSPredicate*)aPred;
NSString
// use all the time with RegExs
-(NSRange)fullRange;
// not null and length > 0
-(BOOL)stringOK; 
// trim extra head/trail white space and and multiple consecutive spacea
-(NSString*)cleanAllWhiteSpace;
1 Like

technomorph: using custom frameworks is very intriguing; I have not used them. While looking into them I came across a post of yours giving details of implementing them with iTunes. I do not use Xcode; I write scripts from scratch, as it were. I wonder if custom frameworks require Xcode. I will look at Shane’s Scripting Bridge, as you mentioned. Thank you for your response.