title: Spotify's "player state" is available in the editor, but in a packaged app, it gets only "«constant ****kPSP»"
body: <p>Here's a testing code:</p>
  
  <pre><code>tell application "Spotify"
      set playerState to player state as string
  end tell
  display dialog playerState
  </code></pre>
  
  <p>Works fine from the AppleScript editor. However, when I export my script as an app, all I get is this:
  <img src="https://i.stack.imgur.com/uHfBx.png" alt="enter image description here"></p>
  
  <p>Why is this happening?</p>