r/applescript • • Jul 17 '22
🎶 Control Spotify Programmatically via AppleScript on macOS
So today I learnt that we can do play/pause/shuffle/etc. using AppleScript on macOS. The idea is to write code that interacts with the Spotify app to make it do certain things:
8
Upvotes
1
u/CO_Automation Jul 17 '22
Nice write up Benham.
1
u/embirico Jul 25 '22 edited Jul 25 '22
Nice—we just launched this entire feature built off AppleScript: https://www.producthunt.com/posts/play-spotify-together-in-remotion.Here's us hoping they don't change up the API too much 🤞
EDIT: Edited to clarify that we also built on AppleScript—not this article.
1
u/[deleted] Oct 15 '22
You don't need to deal with the sdef files, you just have to explore the dictionary, as in every application, which will tell you what is scriptable.