Questions tagged [spotlight]

Spotlight on Mac OS X is a fast desktop search technology that allows users to organize and search for files based on metadata. Spotlight is extensible, allowing developers to provide metadata importers for their application’s documents.

259 questions
0
votes
0 answers

Android | How to show the search item in the view without open the app

I want to show items same as in attached screenshot when I search any text if app is exist in the device may be it is the some part of matched content/deeplink/universal deeplink. Can anyone help me out about this particular spotlight in android…
0
votes
1 answer

How to correctly use MDQuerySetSortComparatorBlock in swift?

My code: //search all of applications let queryString = "kMDItemContentTypeTree=com.apple.application" // sort by last metadata change let sorting = [kMDItemAttributeChangeDate] as CFArray // create query and assign sorting param let query =…
Andrew_STOP_RU_WAR_IN_UA
  • 9,318
  • 5
  • 65
  • 101
0
votes
0 answers

How to increase the number of items in %USERPROFILE%/AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets?

I want to increase the number of items in %USERPROFILE%/AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets so that I can get more spotlight images. How do I do it?
0
votes
1 answer

How to do a Spotlight search in Swift (NSMetadataQuery)?

I'm trying to do a Spotlight search inside a mac app. Here is the code I have so far: import Foundation let nf = NotificationCenter.default class FileSearcher { public static let sharedInstance = FileSearcher() var query: NSMetadataQuery?…
Oscar Franco
  • 5,691
  • 5
  • 34
  • 56
0
votes
1 answer

Spotlight search not working for mac catalyst apps

I've an iOS app that has spotlight search feature which allows user to search items from an app. It works fine on iOS app I am in the process of migrating the app as a catalyst app, somehow the spotlight search on mac catalyst app is not…
user4150758
  • 384
  • 4
  • 17
0
votes
1 answer

How to limit the number of results returned from NSMetadataQuery?

Is there a way to limit the maximum number of file search results that are returned from an NSMetadataQuery query on macOS? Currently, if I enter 1-2 characters as a query string, it takes over 5 seconds to receive the initial set of results, and…
glocore
  • 1,727
  • 1
  • 14
  • 24
0
votes
3 answers

Spotlight search is not working in MacOS Big Sur on unsupported macs

Don't know how but my Spotlight search stopped working, I search for the solutions but not success: I tried this command on terminal and got error: ~ % sudo mdutil -i off / Spotlight server is disabled. ~ %sudo mdutil -i on / Spotlight server is…
Irfan Anwar
  • 1,878
  • 17
  • 30
0
votes
1 answer

Starting PackageMaker from Spotlight

Why does Spotlight not allow me to start PackageMaker, although it allow me to start Xcode and Dashcode, which are in the same folder? Any good guides to fixing/modifying this behavior?
Abdullah Jibaly
  • 53,220
  • 42
  • 124
  • 197
0
votes
1 answer

Custom keywords in Spotlight plugin for Mac OS X

I am developing a Spotlight plugin for PSD files that can search in the text of the PSD file also. I want to add the kind: keyword to the plugin to narrow the search results. My question is: Can we add a custom kind: keyword to Spotlight plugins?…
Vinay Jain
  • 2,644
  • 3
  • 26
  • 44
0
votes
2 answers

How to establish connection to use dbpediaSpotlight in python?

I'm programming python in Jupyter Notebook, but when I run this code: import requests import re import spotlight document = 'First documented in the 13th century, Berlin was the capital of the Kingdom of Prussia (1701–1918), the German Empire…
ProSyth
  • 167
  • 1
  • 5
  • 17
0
votes
1 answer

Make a function locate using mdfind on MacOS Catalina

Since I am using MacOS Catalina, I would like to benefit from the useful mdfind to find any files or directory matching a name. I would like to override locate function (classical function which will be still available by typing \locate. Here the…
user1773603
0
votes
0 answers

Adding spotlight effect on an object in the scene using three.js

I'm trying to add a spotlight effect on different parts of my scene but for some reason I'm unable to accomplish it. I tried using PointLight and SpotLight but they both didn't work. Example of the code var pointLight = new THREE.PointLight(…
Jir
  • 113
  • 1
  • 1
  • 8
0
votes
0 answers

Is there a way to simulate lights that are directed on camera with raytracing?

Typically, when i compute lights in my ray-tracing, I find the first object intersected by my ray, then I calculate the amount of the light that point. I was thinking if there was an efficient way to simulate the light that comes directly to the…
peppone
  • 85
  • 6
0
votes
2 answers

Is it possible to have multiple document types for one NSPersistentStoreCoordinator?

I have 2 different entities in my core data model: project and issue. Each type has unique attributes, so I want to use different UTI document type for each entity. Each UTI document type should have an extension. Unfortunately,…
Kentzo
  • 3,881
  • 29
  • 54
0
votes
1 answer

NSWorkSpace' showSearchResultsForQueryString: doesn't work in 10.14

The simplest code doesn't work in Mac OS X 10.14. XCode 10.2.1 (10E1001). Application is not sandboxed. Main window has only one push button. When button is clicked following method is called: - (IBAction)clicked:(id)sender { NSString…