spotlightsearch

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CODING/DEVELOP
Introduced first in SolidGeometry 5.3, Creation date: 2023-04-13, Last change: 2025-08-18

spotlight using matlab on mac



See Also: , mdfind

Example Illustration

 missing image of spotlightsearch()

Syntax

b=spotlightsearch([])

Output Parameter

b: result of spotlight as cell list

Examples


spotlightsearch aston martin coloured .stl




Copyright 2023-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Algorithm (Workflow)

The function spotlightsearch is a MATLAB function designed to perform a search using the macOS Spotlight feature. It utilizes the terminal command mdfind to execute the search.

Input Parameters

The function accepts a variable number of input arguments (varargin), which are passed directly to the mdfind command. These arguments represent the search query terms.

Output

The function returns a cell list b containing the results of the Spotlight search if an output is requested. If no output is requested, the function simply executes the mdfind command without returning any results.

Algorithm Steps

  1. The function begins by printing a debug message indicating that it uses the terminal command mdfind for macOS Spotlight search.
  2. The function checks if an output is requested by evaluating nargout. If nargout is zero, it means no output is requested, and the function calls mdfind with the provided arguments, executing the search without returning results.
  3. If an output is requested, the function assigns the result of the mdfind command to the variable b, which is then returned as a cell list containing the search results.

The function is part of the SolidGeometry library, version 5.3, and is categorized under auxiliary procedures. It was created by Tim C. Lueth in March 2023.

Algorithm explaination created using ChatGPT on 2025-08-18 22:04. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21