by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.5 - CODING/DEVELOP
Introduced first in SolidGeometry 4.5, Creation date: 2019-03-22, Last change: 2025-07-20
Only for toolbox developer (2025-08-09) - Not intended to be released
whoislaunched([])
whoislaunched
This MATLAB function, whoislaunched, is designed to display a list of active third-party (non-Apple) processes on a macOS system. It is part of the SolidGeometry library and is categorized under auxiliary procedures. The function does not take any specific input parameters, as indicated by the use of varargin, which allows for a variable number of input arguments, but none are explicitly used in the function.
The function begins by printing a header message to the console, indicating that it will list third-party tasks currently launched on the computer. This is done using the fprintf function with a file identifier of 2, which directs the output to the standard error stream.
The core of the function is a system call executed via the system command. The command 'launchctl list | grep -v -e ''com.apple''' is used to retrieve a list of all processes managed by launchctl, excluding those that are part of Apple's own services. The grep -v -e ''com.apple'' part filters out any lines containing com.apple, effectively showing only third-party processes.
After executing the system command, the function prints additional messages to the console. These messages provide guidance on how to use related functions, such as whosisPID and whoislaunchagent, to manage or remove process labels from the launch list. The function suggests using whosisPID with a process ID (PID) or label to remove processes or find launch agents, and whoislaunchagent to find and remove launch agents.
Overall, the function is a utility for macOS users to monitor and manage third-party processes, providing a simple interface to view and interact with these processes through related functions.
Algorithm explaination created using ChatGPT on 2025-08-19 01:39. (Please note: No guarantee for the correctness of this explanation)