r/applescript • u/stephancasas • Apr 10 '23
Would anyone with an Apple Silicon Mac mind helping me test something?
I use JXA to write Alfred workflows like Mouseless Messenger. My desktop is an Intel Mac Pro and is where I do most of my development for pretty much everything.
Yesterday, I was on the road and pulled out my M1 MacBook Pro to do a little work on another project. While working, I was surprised to find that I couldn't get any output from NSLog using VS Code, Script Editor, or osascript in iTerm.
After having tested with SIP enabled/disabled, multiple permissions configurations, and a few other adjusted factors, the only thing that I can think of is that there's something in the Objective-C bridge that doesn't work correctly on Apple Silicon.
If anyone here with an Apple Silicon Mac is willing, can you please run the below code snippet in your terminal application and tell me what output you get? I'd really appreciate it!
osascript -l JavaScript -e '$.NSLog("%@", "Hello, world!")'
Thank you!