I want to write a command that launches iTunes and play the first song that is in the playlist or random song ,for now I can only launch iTunes from my code but it doesn't start the song automatically, I added --play but its doesn't work ..it there away to make it work? my aiml pattern is here
```<category> <pattern> PLAY MUSIC FROM MY COMPUTER </pattern> <template> <random> <li>Sure thing! </li> <li>OKAY, </li> <li>OK! </li> </random> <system> open -a /Applications/itunes.app/Contents/MacOS/itunes/play</system> </template> </category>```
Hello,You can do it this way
Hello,
You can do it this way in the AIML:
And then you add a python script for each command. First one includes the path to your music directory:
The issue with this, is that it won't open or select music in subdirectories.
I don't have the time to dig further, but this gives you already a way to make it work it out.
I have just added this to the InMoov develop and it works nicely.