Recovering Deleted Apple Music Playlists with Claude Cowork

A detailed use case shows how Claude Cowork helped recover 20+ years of deleted Apple Music playlists after a user accidentally wiped their entire library while troubleshooting an iCloud sync issue. The recovery involved reconstructing 75 playlists and slotting 8,185 tracks back into them.
The Problem
The user deleted every playlist in their Apple Music library and the entire Apple Music cloud library in June 2025 while trying to fix an iCloud sync issue. This included roughly 20 years of curation, imports from Spotify, and 7 years of Apple Music preference building. The only remaining data was a damaged Favorites list and some Discovery playlists.
What Claude Cowork Did
After the user described the problem and pointed to an Apple data export folder, Claude Cowork:
- Found and parsed the
Apple Music Library Playlists.jsonandTracks.jsonfiles inside the export - Cross-referenced a 256,617-row Play Activity CSV to reconstruct deleted playlist contents (modification dates showed all deletions occurred on 2025-06-01)
- Recovered 31 of 34 deleted playlists from play history alone with full track lists
- Wrote Python scripts to generate a formatted Excel report with 4 sheets: Summary, Active Playlists, Deleted/Recovered, and Full Library sorted by play count
- Generated 14 AppleScript shell scripts split across active and deleted playlists that searched the Music.app library and automatically slotted tracks into recreated playlists
- Debugged multiple rounds of AppleScript syntax errors, encoding issues (em dashes and special characters causing Script Editor to misidentify files as Chinese), and iCloud permission errors
- Built a master
RUN_ALL.shscript to run all 14 restore scripts sequentially
The Tools Built On the Fly
After the AppleScript restore pass, 1,254 tracks remained unfound (either from Apple-curated playlists or with artist names stripped during ASCII conversion). Claude built three custom HTML tools:
- Apple Music Quick-Add.html – Looked up each NOT FOUND track against the iTunes Search API using JSONP (to bypass CORS from a local file), showed confidence badges (exact/close/title/partial), and created
music://deep links to open tracks directly in the desktop Music app - Apple Music Album Add List.html – Pivoted from individual tracks to whole albums once adding albums proved faster. Grouped the 1,254 missing tracks into 437 unique albums, looked up each via the iTunes API, and generated 'Open in Music' deep links that jumped straight to albums in the desktop app. Sorted by track count so the most impactful albums came first
- Both tools used localStorage for checkbox persistence so the user could work across multiple sessions without losing progress
The album tool was particularly effective – instead of clicking through 1,254 individual tracks, the user added whole albums in seconds each, completing 437 albums in a fraction of the time.
📖 Read the full source: r/ClaudeAI
👀 See Also

Using a VM with OpenClaw for direct file access and faster iteration
Running OpenClaw in a virtual machine allows developers to directly view, read, edit project files like AGENTS.md and HEARTBEAT.md instead of working exclusively through chat interfaces. This approach speeds up iteration cycles significantly.

Custom OpenClaw Skills for CRM and CMS Integration
A developer built custom OpenClaw skills to interface with their own CRM and CMS systems, enabling automated lead generation and content drafting with human oversight. The setup took one day to implement.

OpenClaw Assistant Creates Dockerized Terminal Assistant with Custom Routing
An OpenClaw user reports their main assistant helped spin up a second assistant inside Docker with its own workspace, memory, and terminal-first behavior. Messages starting with 'meow:' are routed to the containerized terminal assistant instead of the main chat interface.

Claude AI used to automate YC W26 startup research and ranking
A Reddit user automated VC associate research by having Claude investigate every YC W26 startup, scoring them on founder credibility, product reality, market opportunity, and competition with tiers from S to D.