Hi, I’m creating new documents via script (to automatically add the current date).
I’d like to disable Show Code Folding
for them but can’t find a way to do that.
Here’s my setup:
-
Created a template
-
Set preference
General > For New Documents
to it -
Set this template’s view for all new documents via menu
Window > Set Default Script Size & State
Now, when I use File > New Script
I get exactly what I want, i.e. Show Code Folding
is unmarked.
However, when I create a new document via script it doesn’t respect the disabled Show Code Folding
.
I found a post from 2017 that says it was possible to add a HideCodeFolding
key to a template’s plist. Tried with Script Debugger 8, doesn’t work (anymore?), but that may be due to the fact that the post didn’t explain what the key’s values can be.
Am I doing this wrong or is it not possible to hide Code Folding for scripts created via script?