Jump to content

Alfred's iTunes commands and iTunes Radio


Recommended Posts

Hi!

 

I'm enjoying the new iTunes Radio in iTunes 11.1 and I noticed that the "play / pause" commands in Alfred throw an error in Console.app when used with iTunes Radio:

 

 

18.09.13 20:15:00,710 Alfred 2[243]: [ERROR] AppleScript Error: {
    NSAppleScriptErrorAppName = iTunes;
    NSAppleScriptErrorBriefMessage = "Can\U2019t get class of file track id 94414 of user playlist id 94381 of source id 62612.";
    NSAppleScriptErrorMessage = "iTunes got an error: Can\U2019t get class of file track id 94414 of user playlist id 94381 of source id 62612.";
    NSAppleScriptErrorNumber = "-1728";
    NSAppleScriptErrorRange = "NSRange: {0, 0}";
}
 
The commands are working perfectly, though - it was a coincidence that I had Console open and saw the error.
Just thought I mention it ;)
 
Cheers, Anna
Link to comment

 

Hi!

 

I'm enjoying the new iTunes Radio in iTunes 11.1 and I noticed that the "play / pause" commands in Alfred throw an error in Console.app when used with iTunes Radio:

 

 

18.09.13 20:15:00,710 Alfred 2[243]: [ERROR] AppleScript Error: {
    NSAppleScriptErrorAppName = iTunes;
    NSAppleScriptErrorBriefMessage = "Can\U2019t get class of file track id 94414 of user playlist id 94381 of source id 62612.";
    NSAppleScriptErrorMessage = "iTunes got an error: Can\U2019t get class of file track id 94414 of user playlist id 94381 of source id 62612.";
    NSAppleScriptErrorNumber = "-1728";
    NSAppleScriptErrorRange = "NSRange: {0, 0}";
}
 
The commands are working perfectly, though - it was a coincidence that I had Console open and saw the error.
Just thought I mention it ;)
 
Cheers, Anna

 

 

I'll make sure Andrew is aware of this. Thanks for reporting it :)

Link to comment

Hi,

 

I have exactly the same issue - except that the commands are not working at all.  

 

As a test I deleted the Alfred Playlist from iTunes.  Alfred creates the new playlist ok - but there is no contents and i get 

 

 
19/09/13 2:37:59.509 PM Alfred 2[23127]: [ERROR] AppleScript Error: {
    NSAppleScriptErrorAppName = iTunes;
    NSAppleScriptErrorBriefMessage = "Can\U2019t set user playlist id 62504 of source id 75 to file track id 7052 of library playlist id 5664 of source id 75.";
    NSAppleScriptErrorMessage = "iTunes got an error: Can\U2019t set user playlist id 62504 of source id 75 to file track id 7052 of library playlist id 5664 of source id 75.";
    NSAppleScriptErrorNumber = "-10006";
    NSAppleScriptErrorRange = "NSRange: {0, 0}";
}
 
in console.
 
Is there a bug report to add this detail to?  Latest version of alfred 2.0.8 (212) and iTunes 11.0.5 (5)
Link to comment

 

Hi,

 

I have exactly the same issue - except that the commands are not working at all.  

 

As a test I deleted the Alfred Playlist from iTunes.  Alfred creates the new playlist ok - but there is no contents and i get 

 

 
19/09/13 2:37:59.509 PM Alfred 2[23127]: [ERROR] AppleScript Error: {
    NSAppleScriptErrorAppName = iTunes;
    NSAppleScriptErrorBriefMessage = "Can\U2019t set user playlist id 62504 of source id 75 to file track id 7052 of library playlist id 5664 of source id 75.";
    NSAppleScriptErrorMessage = "iTunes got an error: Can\U2019t set user playlist id 62504 of source id 75 to file track id 7052 of library playlist id 5664 of source id 75.";
    NSAppleScriptErrorNumber = "-10006";
    NSAppleScriptErrorRange = "NSRange: {0, 0}";
}
 
in console.
 
Is there a bug report to add this detail to?  Latest version of alfred 2.0.8 (212) and iTunes 11.0.5 (5)

 

 

Just to confirm, I am also having the same issues. I'm reporting it to Andrew to take a look at. With the new iTunes 11.1 having just released there are some issues with it as well, not just with the playlist but it appears to be an issue with osascript and iTunes. We'll be looking into it. Thanks again.

Link to comment

Just to confirm, I am also having the same issues. I'm reporting it to Andrew to take a look at. With the new iTunes 11.1 having just released there are some issues with it as well, not just with the playlist but it appears to be an issue with osascript and iTunes. We'll be looking into it. Thanks again.

 

Thanks, David!
 
As a workaround I just connected this simple AppleScript to a hotkey and it works fine with iTunes Radio (without error):
tell application "iTunes"
	if player state is playing then
		pause
	else
		play
	end if
end tell
Link to comment

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...