# Default search scope

Set the default search scope when performing a search

  • Tested on macOS:
    • Monterey
    • Big Sur
  • Parameter type: string

# Set to SCcf

Search the current folder

defaults write com.apple.finder "FXDefaultSearchScope" -string "SCcf" && killall Finder

# Set to SCsp

Use the previous search scope

defaults write com.apple.finder "FXDefaultSearchScope" -string "SCsp" && killall Finder

# Set to SCev (default value)

Search this Mac

defaults write com.apple.finder "FXDefaultSearchScope" -string "SCev" && killall Finder

# Read current value

defaults read com.apple.finder "FXDefaultSearchScope"

# Reset to default value

defaults delete com.apple.finder "FXDefaultSearchScope" && killall Finder