This crate makes it possible to control the local instance of Apple Music or iTunes.
It contains both low-level, safe bindings over various APIs (see below), and higher-level helper functions.
This crate is able to read info (about playlists, songs, etc.) from the local Apple Music instance.
It is also able to edit data (add songs to playlists, change track ratings, etc.) on the local Apple Music instance.
It is not meant to read or edit "cloud" playlists, or to do anything network-related.
- On macOS, it uses AppleScript to control Apple Music
- On Windows, it uses COM API to control iTunes
- On Windows, there is no COM API (yet?) to control Apple Music
I am grateful to:
- joshkunz for providing the first doc about iTunes COM API I discovered
- DDRBoxman for wrappers around this COM API that I re-used to start building this crate.