Hello,
for few days now I am banging my head on trying to create script to start iTunes radio station. Not URL station, but one of those new iTunes radio stations which one can find in Music under tab "Radio". I created my own "station" and want to start it from other program.
Those "native" iTunes radio stations seem to look like playlists, here is what I get when I ask iTunes for information:
******
*****
Dictionary was not much help. It's like this relatively new component of iTunes is not yet supported by Applescript?
Anyone ideas anyone?
Thanks
for few days now I am banging my head on trying to create script to start iTunes radio station. Not URL station, but one of those new iTunes radio stations which one can find in Music under tab "Radio". I created my own "station" and want to start it from other program.
Those "native" iTunes radio stations seem to look like playlists, here is what I get when I ask iTunes for information:
******
Code:
tell application "iTunes"
get name of current track
--> "Name of currently payed track iTunes selected"
get name of current playlist
--> "Name of my radio station"
end tell
******
But when I try to set the playlist and play first track, I get error:
tell application "iTunes" to play (first track of playlist "Name of my radio station")
*****
play track 1 of playlist "Name of my radio station"
--> error number -1700
Result:
error "iTunes got an error: Cant make some data into the expected type." number -1700 to item
Dictionary was not much help. It's like this relatively new component of iTunes is not yet supported by Applescript?
Anyone ideas anyone?
Thanks
Last edited by a moderator: