Search Clippings Not Working

Hi All-

I’ve run into an issue with Script Debugger’s Search Clippings. Typing two or more letters into the search bar dwindles down the Clippings list to nothing. I’m at a complete loss as to the cause of the behavior and more importantly how to restore the search functionality. Can anyone please offer a suggestion? Thanks.

Works fine here.

→ Script Debugger 8.0.5 (8A61)
→ Mac OS 11.6.8 (20G730)

It might be helpful to Mark and Shane if you provide your SD version and OS version.

FYI, here’s a version of a script (written with help here) that sends version info to the clipboard that you can paste into your posts:

use scripting additions
use framework "Foundation"

set saveTID to AppleScript's text item delimiters
set AppleScript's text item delimiters to {"Version ", "Build "}
set sysVer to (current application's NSProcessInfo's processInfo()'s operatingSystemVersionString())
set sysVer to text items 2 thru 3 of (sysVer as text)
set AppleScript's text item delimiters to {""}
set sysVer to {"-->  Mac OS Version: " & sysVer as text}

set allAppBundleIds to {¬
   ("com.latenightsw.ScriptDebugger8"), ¬
   ("") ¬
-- You can include bundle identifier of app, as found in System events
--   (""), ¬

set appVersions to {}
repeat with thisAppBundleId in allAppBundleIds
   set the end of appVersions to GetAppInfo(thisAppBundleId)
end repeat

set versionStrings to {sysVer}
repeat with thisAppInfo in appVersions
   set {fullAppName, appVer, appBundleVer} to thisAppInfo
   set the end of versionStrings to "-->  " & fullAppName & space & appVer & " (" & appBundleVer & ")"
end repeat
set AppleScript's text item delimiters to {return}
set versionStrings to versionStrings as text
set AppleScript's text item delimiters to saveTID

set the clipboard to versionStrings

return the clipboard
-->  Script Debugger 8.0.5 (8A61)
-->  Script Editor 2.11 (225)
-->  FastScripts 3.2.2 (1723)
-->  Mac OS Version: 11.6.8 (Build 20G730)
on GetAppInfo(AppBundleId)
   set appNSURL to current application's NSWorkspace's sharedWorkspace()'s URLForApplicationWithBundleIdentifier:AppBundleId
   set appBundle to current application's NSBundle's bundleWithURL:appNSURL
   set fullAppName to (appBundle's infoDictionary()'s objectForKey:"CFBundleName") as text
   set appVer to (appBundle's infoDictionary()'s objectForKey:"CFBundleShortVersionString") as text
   set appBundleVer to (appBundle's infoDictionary()'s objectForKey:"CFBundleVersion") as text
   return {fullAppName, appVer, appBundleVer}
end GetAppInfo

1 Like

→ Mac OS Version: 13.0.1 (22A400)
→ Script Debugger 8.0.5 (8A61)
→ Script Editor 2.11 (227)
→ FastScripts 3.1.2 (1661)

I can’t reproduce the issue. Is Open Quickly... working for you?

Yes. And thanks I didn’t know about that feature! :grinning:

This sounds familiar. Try this, in the tab right-click on one of the clippings and choose “Reveal in Finder”

Then, try the find clipping feature again.

Do you have Full Disk Access enabled?

It found it in Finder but didn’t alter the behavior

1 Like

Yes I do have it enabled, I double checked to be certain

And you’re running a licensed copy installed in the Applications folder of your start-up disk?

Yes. It worked fine until a few weeks ago.

Check your Spotlight indexing preferences – is Applications indexing on or off?

Yes, I have indexing enabled for every category

I’m not sure what else to suggest – I can only explain what you’re reporting by a Spotlight failure.

If you do a spotlight search from the finder, does that find clippings?

To check the current state of spotlight use

mdutil -sa

in the terminal. I have seen

Error: unknown indexing state

as the return value in cases like that. Which in my experience usually means corruption of the spotlight index database.

Thanks so much for your suggestions. I was able to fix it this morning with a simple reinstall. Must have been a corrupt preference file or something. I appreciate your help!