I realized today that Spotlight stops to find any search string in compiled scripts’s text content.
Don’t know when it starts. Maybe when I re-installed SD7 next to SD8?
.scpt files can be found by their names.
.scptd and .applescript files’s content is searchable.
If I convert a scpt to scptd, Spotlight can read its content.
It seems I have an issue with SDimporter.mdimporter.
How can I fix it?
[I’ve restarted my Mac half a dozen of times]
MacOS 12.6.1 (21G217)
Script Debugger 8.0.5 (8A61)
I can reproduce the problem here. I saved a new script in
.scpt format and SD’s Open Quickly couldn’t see it, but when I saved the same script in
.scptd format SD’s Open Quickly could see it immediately.
I suspect you are right that its an importer issue, but we’ll have to investigate to figure out why SD’s importer isn’t being used for
For a compiled script that isn’t being found by Script Debugger’s Open Quickly, please use this Terminal command to identify the importer being used on your system:
mdimport -t -d2 /path/to/script-name.scpt
Thank you - that is the correct importer. This confirms that the importer is somehow not indexing this type of file correctly. We’ll look into the problem further at this end.
Thanks. Hope this is not a macOS issue.
Probably. There’s no way of controlling which importer is loaded by the system.
What I meant was: is it possible that SD7 importer has corrupted SD8 one?
Because SD7 is no longer installed and the issue is still there.
I’ve restarted macOS, reset Spotlight, cleaned everything related to SD7 I could find, used Cocktail to clean user caches… all that without any success.
Can you reproduce the issue at your end?
Yes, I have at various times. It’s easy to confuse the system, and sometimes I’ve had to resort to using
lsregister to fix things. Last I tried, the system kept wanting to use an rtf importer.