Skip to content

Instantly share code, notes, and snippets.

@acodega
Created December 1, 2025 12:36
Show Gist options
  • Select an option

  • Save acodega/8b265a116d3acf626e6ea595715f371a to your computer and use it in GitHub Desktop.

Select an option

Save acodega/8b265a116d3acf626e6ea595715f371a to your computer and use it in GitHub Desktop.
Find macOS icons
#!/bin/bash
# Create the destination folder on Desktop
DEST="$HOME/Desktop/icons"
mkdir -p "$DEST"
# Find and copy .icns files
find /System/Library -iname '*.icns' | while read -r filepath; do
# Extract the filename from the path
filename=$(basename "$filepath")
# Copy the file to the destination
cp "$filepath" "$DEST/$filename"
done
echo "All .icns files have been copied to $DEST."
# LockedIcon.icns
/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/LockedIcon.icns
# AirPortUtility.icns
/System/Library/PrivateFrameworks/AOSUI.framework/Versions/A/Resources/AirPortUtility.icns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment