jonathangarelick / SoundSeer

SoundSeer is a macOS app that shows your current song & controls in the menu bar.
122 stars 2 forks source link

notes on interfacing with spotify #10

Closed jonathangarelick closed 1 month ago

jonathangarelick commented 1 month ago

https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_security_automation_apple-events

SoundSeer/SoundSeer.entitlements

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>com.apple.security.automation.apple-events</key>
    <true/>
</dict>
</plist>

I believe this will be sufficient configuration to send apple events to spotify. This will send the user a pop-up asking them to allow my app to communicate with Spotify.

jonathangarelick commented 1 month ago

https://github.com/jonathangarelick/SoundSeer/blob/main/ENTITLEMENTS.md will contain this info from now on.