Add LaunchServices, Search categories and entries
This commit is contained in:
parent
f413a32ed4
commit
1dba715519
26
README.md
26
README.md
@ -47,6 +47,8 @@ If you want to contribute, you are highly encouraged to do so. Please read the [
|
|||||||
- [Gatekeeper](#gatekeeper)
|
- [Gatekeeper](#gatekeeper)
|
||||||
- [Passwords](#passwords)
|
- [Passwords](#passwords)
|
||||||
- [Wiping Data](#wiping-data)
|
- [Wiping Data](#wiping-data)
|
||||||
|
- [Search](#search)
|
||||||
|
- [Locate](#locate)
|
||||||
- [System](#system)
|
- [System](#system)
|
||||||
- [AppleScript](#applescript)
|
- [AppleScript](#applescript)
|
||||||
- [Basics](#basics)
|
- [Basics](#basics)
|
||||||
@ -55,6 +57,7 @@ If you want to contribute, you are highly encouraged to do so. Please read the [
|
|||||||
- [Information/Reports](#information-reports)
|
- [Information/Reports](#information-reports)
|
||||||
- [Kernel Extensions](#kernel-extensions)
|
- [Kernel Extensions](#kernel-extensions)
|
||||||
- [LaunchAgents](#launchagents)
|
- [LaunchAgents](#launchagents)
|
||||||
|
- [LaunchServices](#launchservices)
|
||||||
- [Memory Management](#memory-management)
|
- [Memory Management](#memory-management)
|
||||||
- [Notification Center](#notification-center)
|
- [Notification Center](#notification-center)
|
||||||
- [QuickLook](#quicklook)
|
- [QuickLook](#quicklook)
|
||||||
@ -504,6 +507,22 @@ srm -rf /path/to/complete/destruction
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Search
|
||||||
|
|
||||||
|
### Locate
|
||||||
|
|
||||||
|
#### Build Locate Database
|
||||||
|
```bash
|
||||||
|
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Search via Locate
|
||||||
|
The `-i` modifier makes the search case insensitive.
|
||||||
|
```bash
|
||||||
|
locate -i *.jpg
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## System
|
## System
|
||||||
|
|
||||||
### AppleScript
|
### AppleScript
|
||||||
@ -650,6 +669,13 @@ Run job every 5 minutes.
|
|||||||
</plist>
|
</plist>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### LaunchServices
|
||||||
|
|
||||||
|
#### Rebuild LaunchServices Database
|
||||||
|
To be independent of OS version, this relies on `locate` to find `lsregister`. If you do not have your `locate` database built yet, [do it](#build-locate-database).
|
||||||
|
```bash
|
||||||
|
sudo $(locate lsregister) -kill -seed -r
|
||||||
|
```
|
||||||
|
|
||||||
### Memory Management
|
### Memory Management
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user