Open quickly seems off a bit

I’m working on a Myriad Tables script and for some reason the table is not sorting they way it should.

I try open quickly and type: “modify columns”

No results.

I start typing “modify” and I get plenty.

“Modify table” also works.

That’s odd because I have dozens of scripts with that command, including the MT Sample scripts that always come up in Open Quickly results.

Is it possible that the continuation character (¬) isn’t letting Open Quickly find the text?

→ Script Debugger 8.0.3 (8A42)
→ Mac OS 11.6 (20G165)

Also, If I click the ? button at the bottom left of the Open Quickly window I get this in a help window titled: MacOS User Guide

The selected content is currently unavailable

The content you selected can’t be displayed at this time. Try again later.

You may be experiencing one of the following issues:

The server may be unreachable.

Your school, business, or internet service provider (ISP) may be experiencing an outage.

The content may not exist.

If you still can’t view help content after trying again, contact Apple Support. You can also use the Apple Support app (available from the App Store) on iPhone or iPad.

Just did a quick open quickly test.

I created and saved a new script titled OQTest, with the code below.

I then tried open quickly searches for:

“open quickly” – No result
“myQuestion” – No result
“OQTest” – found the script

use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions

set myQuestion to "will open quickly find this?"

set myOtherQuestion to "or will open quickly find this?"

Did some experimenting. Spotlight wouldn’t find the compiled script either.

I saved it as an apple Application and as an Enhanced Applet and if didn’t find either.

I saved it as a script bundle and Open Quickly (and spotlight) both found it.

Looking through other Open Quickly and Spotlight results I’m only seeing script bundles for appleScripts. No apps or compiled scripts.

In the spotlight preferences Applications is checked (actually everything is checked). There is not an option for compiled scripts or applets.

Is this a known issue?

→ Script Debugger 8.0.3 (8A42)
→ Mac OS 11.6 (20G165)

I’m experiencing similar things here. When I examine the Script Debugger code, I see that Spotlight is returning no results to Script Debugger for applications which suggests to me that there is an indexing problem. Rebuilding my Spotlight index didn’t improve things so I began investigating a little further.

It appears that Script Debugger’s importer (which extracts description and content) for scripts is no longer being invoked. This command tests this:

/usr/bin/mdimport -d2 -t ~/Desktop/ETest.app

The result shows that only the system’s application importer (/System/Library/Spotlight/Application.mdimporter) is bing used:

Imported '/Users/mall/Desktop/ETest.app' of type 'com.apple.application-bundle' with plugIn /System/Library/Spotlight/Application.mdimporter.
30 attributes returned
{
    ":MD:DeviceId" = 16777220;
    ":MD:kMDItemPath" = "/Users/mall/Desktop/ETest.app";
    "_kMDItemContentChangeDate" = "2021-10-22 05:17:21 +0000";
    "_kMDItemCreationDate" = "2021-10-21 17:29:10 +0000";
    "_kMDItemCreatorCode" = 0;
    "_kMDItemDisplayNameWithExtensions" =     {
        "" = "ETest.app";
    };
    "_kMDItemFileName" = "ETest.app";
    "_kMDItemFinderFlags" = 0;
    "_kMDItemFinderLabel" = 0;
    "_kMDItemFromImporter" = 1;
    "_kMDItemIsExtensionHidden" = 1;
    "_kMDItemIsFromImporter" = 1;
    "_kMDItemNodeCount" = 1;
    "_kMDItemOwnerGroupID" = 20;
    "_kMDItemOwnerUserID" = 501;
    "_kMDItemTypeCode" = 0;
    "com_apple_metadata_modtime" = "656572641.1408449";
    kMDItemAlternateNames =     (
        "ETest.app"
    );
    kMDItemCFBundleIdentifier = "com.mycompany.ETest";
    kMDItemContentCreationDate = "2021-10-21 17:29:10 +0000";
    kMDItemContentModificationDate = "2021-10-22 05:17:21 +0000";
    kMDItemContentType = "com.apple.application-bundle";
    kMDItemContentTypeTree =     (
        "com.apple.application-bundle",
        "com.apple.application",
        "public.executable",
        "com.apple.localizable-name-bundle",
        "com.apple.bundle",
        "public.directory",
        "public.item",
        "com.apple.package"
    );
    kMDItemCopyright =     {
        "" = "Copyright \U00a9 2021 , All Rights Reserved";
    };
    kMDItemDateAdded = "2021-10-21 17:29:10 +0000";
    kMDItemDisplayName =     {
        "" = ETest;
    };
    kMDItemDocumentIdentifier = 18577;
    kMDItemExecutableArchitectures =     (
        arm64,
        "x86_64"
    );
    kMDItemKind =     {
        "" = Application;
        ar = "\U062a\U0637\U0628\U064a\U0642";
        ca = "Aplicaci\U00f3";
        cs = Aplikace;
        da = Program;
        de = Programm;
        el = "\U0395\U03c6\U03b1\U03c1\U03bc\U03bf\U03b3\U03ae";
        en = Application;
        "en_AU" = Application;
        "en_GB" = Application;
        es = "Aplicaci\U00f3n";
        "es_419" = "Aplicaci\U00f3n";
        fi = Appi;
        fr = Application;
        "fr_CA" = Application;
        he = "\U05d9\U05d9\U05e9\U05d5\U05dd";
        hi = "\U0910\U092a\U094d\U0932\U093f\U0915\U0947\U0936\U0928";
        hr = Aplikacija;
        hu = "Alkalmaz\U00e1s";
        id = Aplikasi;
        it = Applicazione;
        ja = "\U30a2\U30d7\U30ea\U30b1\U30fc\U30b7\U30e7\U30f3";
        ko = "\Uc751\Uc6a9 \Ud504\Ub85c\Uadf8\Ub7a8";
        ms = Aplikasi;
        nl = App;
        no = Program;
        pl = aplikacja;
        pt = Aplicativo;
        "pt_PT" = "Aplica\U00e7\U00e3o";
        ro = "Aplica\U021bie";
        ru = "\U041f\U0440\U043e\U0433\U0440\U0430\U043c\U043c\U0430";
        sk = "Aplik\U00e1cia";
        sv = App;
        th = "\U0e41\U0e2d\U0e1e\U0e1e\U0e25\U0e34\U0e40\U0e04\U0e0a\U0e31\U0e48\U0e19";
        tr = Uygulama;
        uk = "\U041f\U0440\U043e\U0433\U0440\U0430\U043c\U0430";
        vi = "\U1ee8ng d\U1ee5ng";
        "zh_CN" = "\U5e94\U7528\U7a0b\U5e8f";
        "zh_HK" = "\U61c9\U7528\U7a0b\U5f0f";
        "zh_TW" = "\U61c9\U7528\U7a0b\U5f0f";
    };
    kMDItemVersion = "1.0";
}

Me and Shane will have to look into this some more to see if there is some way of getting the system to use our importer as well. Applications may be a protected species in the new macOS security scheme and this may no longer be possible.

That would be too bad, but applications are listed in the Spotlight preferences, so it’s not like they’re philosophically opposed