Jaa


Touchstudio: Free scripting engine for Windows Phone 7

Microsoft Research has announced the availability of a free scripting engine for Windows Phone 7, something that is great fun to play around with. It's a free download from the Zune Marketplace on your phone (search for "Touchstudio" in the apps section) which allows you to write scripts that interact with the phone, essentially giving you a pretty sophisticated customisation facility. Some of the samples they have included are pretty cool.

I thought I'd have a go at writing one, it's very simple but actually does something that I've wanted to have for a long time: It lists the music albums on the phone that contain more than 3 songs. Why would I want that? Because it filters out all of the singles and only shows me "real" albums that have all of the tracks in them. It makes for a much shorter, but much more useful, album list.

Here's the code:

action find full albums():Nothing
 foreach songsalbum in media-> song albums do
  if songsalbum->song->count > 3 then
   songsalbum->post to wall