A Scriptable Script Turns a Local Music Folder into an Offline iPhone Player
The script shows how far a few Scriptable APIs can go in replacing a bloated music app with a folder and a preview player. It also hits the hard ceiling of iOS: QuickLook offers no background audio, no lock-screen controls, and no gapless playback, so this is a quick-access tool rather than a full player.
Music apps have become a maze of subscriptions, licensing splits, and pop-ups. The author's answer is a one-file Scriptable script that treats a local folder as a library: it reads a folder bookmarked as Music, filters audio file extensions (mp3, m4a, flac, wav, aac), sorts them, and displays them in a native UITable. Tapping a row closes the table and invokes QuickLook to play the file through the system player, with a while(true) loop to return to the list after playback finishes.
The script also handles a home-screen widget path. When config.runsInWidget is true, it draws a centered progress ring and sets a URL that opens the script when tapped. The widget gives one-tap access to the playlist, which is the author's core ask: quick startup and immediate access to offline songs.
The author had previously written an Android version but switched to iPhone, where native app signing is a pain, so Scriptable becomes the test bed. The result is deliberately minimal, lacking lyrics, shuffle, search, and playlist categories. The author calls it crude and plans to iterate.
The author's pain list (subscription fatigue, split licensing, ads, and convoluted flows) mirrors what drives many users to pirate or to local storage; a 30-line script that lets you browse a folder is a real alternative.
Scriptable's widget and UITable are powerful enough to build a usable 'app' without Xcode, yet the script remains a hack: no background audio, no playback state, and no metadata beyond filenames. The gap between 'works' and 'a real player' is exactly why the author is still on the fence.
Try Salt Player.
Thanks. I gave Salt Player a try, and the experience is genuinely nice. The UI is clean, and the home screen shows a list that plays directly. It's the effect I wanted to achieve. The only thing it lacks is the letter index bar. The alphabetical index bar on the right side of QQ Music is genuinely handy; once you've used it, you can't go back. When I want to find a song, tapping the search box at the top and typing is a bit of a hassle, and scrolling down through the list takes too long. With a letter index bar, one-hand swiping gets you to the song quickly. So satisfying. There are also two minor flaws: first, "Locate Current Song" is buried in the collapsible menu; I think this feature could be pinned as a floating button. Second, I don't think the "Stats" tab needs to be fixed in the tab bar; it could just be hidden.