Placeholders become invisible?

I just noticed this.

If you have uncompiled text with linked place holders (say from clippings or a dictionary) and then you try to compile but there is a compile error, the text with the placeholders looks like plain text, but if you try to edit one of the linked place holders it changes the linked to placeholders, even though the flags that indicate it’s linked are not visible.

→ Mac OS: 14.6.1 (23G93)
→ Script Debugger 8.0.10 (8A88)
→ SD Notary 2 2.0 (102)
→ FastScripts 3.3.4 (1910)

I can’t reproduce that here. When I try to compile and it fails, the placeholders are lost.

I can reproduce this & coincidentally noticed it a couple of weeks ago… though, I’ll confess, I don’t find it bothersome since the issue disappears if you subsequently compile successfully.

In my case, it was with a text substitution (named rwi):

repeat with i from 1 to length of [[linked-template:collection_variable]]
	set [[template:variable]] to item i of [[linked-template:collection_variable]]
	[[template:-- your code goes here...]]
end repeat

To Reproduce:

  1. Use this text substitution in a new script, followed by something that triggers a syntax error:

  2. Try to compile. The variable placeholder formatting disappears:

  3. Double-click the first placeholder & type something (like “TEST”). Both linked placeholders change (but do note, it’s not possible to tab between the placeholders):
    Screenshot 2025-02-02 at 3.20.57 PM

1 Like