Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Applescript in iTunes

  • 12-05-2006 04:39PM
    #1
    Registered Users, Registered Users 2 Posts: 801 ✭✭✭


    Hi,

    I don't know if anyone here uses appescript but here goes...

    I wrote a few Applescripts that basically add songs to a playlist called "Current Playlist" and then plays that playlist.

    They work fine when I select songs and run the script but they don't work when I select an artist or an album without selecting a specific song.

    My code looks something like this:

    if selection of front window is not {} then
    -- add songs

    is there any way of putting in an else statement like:

    else if <artist or album selected> then
    <loop to each song of artist or album>
    <add each song to playlist>

    ???


Advertisement