<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: AppleScript currentPosition is delayed if user plays autoplay/automix/recommended songs in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/AppleScript-currentPosition-is-delayed-if-user-plays-autoplay/m-p/6908120#M17515</link>
    <description>&lt;P&gt;The workaround is to check if the song is running via applescript, and then run a play() command via applescript. it corrects the spotify playback&lt;/P&gt;</description>
    <pubDate>Sun, 06 Apr 2025 18:48:03 GMT</pubDate>
    <dc:creator>aviwad2</dc:creator>
    <dc:date>2025-04-06T18:48:03Z</dc:date>
    <item>
      <title>AppleScript currentPosition is delayed if user plays autoplay/automix/recommended songs</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/AppleScript-currentPosition-is-delayed-if-user-plays-autoplay/m-p/5728422#M11783</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;India&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;M1 MacBook Air&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;macOS Sonoma.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Previously I reported an issue where the currentPosition returned by Spotify's AppleSript api is delayed by the number of seconds the user has set crossfade to. Firstly that has not been fixed in over 4 months. Now, even with crossfade and the new automix option disabled, I am STILL facing currentPosition delay in my application. I have realised that on playlist playback this issue is not visible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is only visible on autoplays, recommended songs, or automixes. no solution but to manually pause and play and fix the currentPosition.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steps:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Disable crossfades and automix&lt;/P&gt;&lt;P&gt;3. Query the playback position on apple script (it is accurate)&lt;/P&gt;&lt;P&gt;4. Queue a new song and wait for Spotify to automatically play the next song (recommended songs, make sure NOT IN A QUEUE or album/user/playlist context)&lt;/P&gt;&lt;P&gt;5. Query the playback position on Apple Script (it is off by 1-2 seconds. It is 1-2 seconds higher than it should be)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you pause the song and unpause, querying the apple script results in a correct playback position. There is no current workaround because users of my product will often listen to automixes or recommended songs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Spotify Version:&amp;nbsp;Spotify for macOS (Apple Silicon)&lt;BR /&gt;1.2.25.1011.G0348b2ea&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 00:36:57 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/AppleScript-currentPosition-is-delayed-if-user-plays-autoplay/m-p/5728422#M11783</guid>
      <dc:creator>aviwad</dc:creator>
      <dc:date>2023-12-06T00:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: AppleScript currentPosition is delayed if user plays autoplay/automix/recommended songs</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/AppleScript-currentPosition-is-delayed-if-user-plays-autoplay/m-p/5864950#M12570</link>
      <description>&lt;P&gt;I would like to simply see a user's crossfade setting, to know how many seconds are being used for crossfading. This way, a secondary (and more accurate) playlist duration could be computed based on the user's crossfade preference.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 20:23:59 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/AppleScript-currentPosition-is-delayed-if-user-plays-autoplay/m-p/5864950#M12570</guid>
      <dc:creator>Puglifiled</dc:creator>
      <dc:date>2024-02-04T20:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: AppleScript currentPosition is delayed if user plays autoplay/automix/recommended songs</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/AppleScript-currentPosition-is-delayed-if-user-plays-autoplay/m-p/5934314#M13079</link>
      <description>&lt;P&gt;This occurs on album autoplay playback&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 06:46:52 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/AppleScript-currentPosition-is-delayed-if-user-plays-autoplay/m-p/5934314#M13079</guid>
      <dc:creator>aviwad2</dc:creator>
      <dc:date>2024-04-17T06:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: AppleScript currentPosition is delayed if user plays autoplay/automix/recommended songs</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/AppleScript-currentPosition-is-delayed-if-user-plays-autoplay/m-p/6011398#M13545</link>
      <description>&lt;P&gt;N/A&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 06:46:23 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/AppleScript-currentPosition-is-delayed-if-user-plays-autoplay/m-p/6011398#M13545</guid>
      <dc:creator>aviwad2</dc:creator>
      <dc:date>2024-04-17T06:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: AppleScript currentPosition is delayed if user plays autoplay/automix/recommended songs</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/AppleScript-currentPosition-is-delayed-if-user-plays-autoplay/m-p/6908120#M17515</link>
      <description>&lt;P&gt;The workaround is to check if the song is running via applescript, and then run a play() command via applescript. it corrects the spotify playback&lt;/P&gt;</description>
      <pubDate>Sun, 06 Apr 2025 18:48:03 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/AppleScript-currentPosition-is-delayed-if-user-plays-autoplay/m-p/6908120#M17515</guid>
      <dc:creator>aviwad2</dc:creator>
      <dc:date>2025-04-06T18:48:03Z</dc:date>
    </item>
  </channel>
</rss>

