A Python script to view and parse contents of macOS .DS_Store files.
The .DS_Store file is a macOS system file that stores folder display preferences and metadata. This tool allows you to inspect and extract entries from these files programmatically.
Before:
After:
- Python 3.8 or higher
- pip (Python package manager)
- Clone the repository:
git clone https://github.com/dhaval17/DS_Store.git
cd DS_Store- Install dependencies:
pip install -r requirements.txtpython dsstore.py -p /path/to/.DS_Store -t Iloc-p, --path(required): Path to the.DS_Storefile-t, --type(optional): Entry type to filter (default:Iloc)
Iloc- Position informationbwsp- Browser window positionlsvp- List view propertieslsvP- List view properties (alternate)icvp- Icon view properties
The project requires the following Python packages:
- ds_store (>=1.3.0): Library for reading
.DS_Storefiles - tqdm (>=4.65.0): Progress bar library
Install with: pip install -r requirements.txt
# View all Iloc entries
python dsstore.py -p ~/.DS_Store -t Iloc
# View bwsp entries with progress bar
python dsstore.py -p /Volumes/External/.DS_Store -t bwspTo manually install dependencies:
pip install ds_store>=1.3.0
pip install tqdm>=4.65.0This project is provided as-is for educational and utility purposes.
Contributions are welcome! Feel free to submit issues and enhancement requests.
This tool is meant for analyzing your own .DS_Store files. Ensure you have the necessary permissions before accessing .DS_Store files on systems or volumes you don't own.

