Dark mode: Preview issue in Finder

I’m running Sonoma 14.7.6 and Script Debugger 8.0.10 on a Macbook Pro 16" 2021 m1 Max 32 GB.

I am experiencing an issue when dark mode is active: the white font of the code is shown black in Finder previews.

This is the code shown in Script Debugger:

This is the same code in the preview sidebar of a Finder window when the script file is selected. You can see that only the blue code can be readen. The white code is shown in black font and it is not possible to read it:

Hitting space when the same file is selected in Finder opens the preview window with the same issue:

Hope you can fix it! Thanks!

I have more information.

This issue is only happening to the new applescripts i am creating with Script Debugger.

All the scripts created previously are not experiencing this issue.

If I create one script with AppleScript Editor, the issue doesn’t happen, even if I open it later with Script Debugger.

I wonder if this can be an issue of the new Apple Sonoma version as I updated yesterday, or maybe it’s related to a permission issue.

Any help will be highly appreciated! :grinning:

I have found what is causing the issue.

If I set the “Active Theme” to “Default Light” in Script Debugger > Preferences > Themes, there is no issue.

If I set the “Active Theme” to “Default Dark” in Script Debugger > Preferences > Themes, the issue occurs.

Is it possible that Script Debugger saves the files with a wrong color font when the Default Dark theme is active?

I suspect that’s the case. Can you try the same thing with a .scptd file?