Jump to content

iTunes next/previous actions don't work for Apple Music [Fixed 2.7.2 b406]


lilyball

Recommended Posts

When using the iTunes control keywords "next" and "previous", or the Workflow iTunes Command action for Next track / Previous track, it doesn't work at all when listening to an Apple Music album that's not in my library. Triggering it logs an AppleScript error to the Console:

 

 

8/21/15 10:26:02.091 AM Alfred 2[1567]: [ERROR] AppleScript Error: {

    NSAppleScriptErrorAppName = iTunes;
    NSAppleScriptErrorBriefMessage = "Can\U2019t get index of current track.";
    NSAppleScriptErrorMessage = "iTunes got an error: Can\U2019t get index of current track.";
    NSAppleScriptErrorNumber = "-1728";
    NSAppleScriptErrorRange = "NSRange: {0, 0}";
}

 

I'm rather curious why it's even trying to get the index of the current track, since iTunes has special AppleScript commands for next / previous track. It also has a separate "back track" command which is preferable to "previous track" because "back track" will rewind to the current track if you're not near the beginning, and will only go to the previous track if you're already at the beginning of the current track (i.e. it behaves like the rewind button in iTunes's UI).

Link to comment
Share on other sites

I'm rather curious why it's even trying to get the index of the current track, since iTunes has special AppleScript commands for next / previous track.

 

This is essentially to make the behaviour within Alfred's playlist predictable (i.e. within the bounds of the playlist).

 

I can see why this wouldn't work for Apple Music though... I'll add a ticket to see what I can do!

 

Cheers,

Andrew

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...