Combining "match" and "match any" rules in smart playlists

Boy, I would really really like Apple to give us the possibility to combine the "match all rules" and "match any rule" criteria in smart playlist. This woulod make it a lot easier to design playlists.
Example: I want to make a smart playlist for a celebration party, that plays ONLY music from certain genres. No videoclips are to included. I would expect Apple to give us the possibility to do something like underneath:
KIND = MUSIC (which I have defined earlier) AND
(GENRE = Dance & Dj OR Genre = Easy Listening OR Genre = Easy Jazz)
Unfortunately, I cannot to do this.....
Greetz, Willem
Netherlands

Willem, You can use 2 playlists to do that. Something like:
PARTYGENRES = Match any (as you have)
PARTYLIST = Match All (KIND = Music and PLAYLIST = PARTYGENRES)

Similar Messages

  • Recordsets with multiple options - AND, OR If Else and the "Any" Rule

    Hi,
    Been trying to get this to work for days now... I have a form with drop down lists that feeds through variables to a search page... The Recordset Jobsearch2 shown below works great so long as a user chooses and option that has info in the DB.... ie all fields must be present. I cannot seem to work out how to achieve and Any rule?...
    I have had 2 options suggested to me...
    a) the code below...
    if(isset($searchsector) && $searchsector !== "") {
    $query_jobsearch2 .= ' AND Sector LIKE "%' . mysql_real_escape_string($searchsector) . '%"';
    putting this in for each option..... but If Im told I have to add this in before the "$jobsearch2 = mysql_query" line... but when I do this the recordset disappears\is deleted...
    b) Using an Array and "Implode" -  this wouldbe great I'm sure if I had any clue how to do this and what it meant.
    MY CURRENT CODE
    <?php require_once('Connections/steelbakercouk_473245_db1.php'); ?>
    <?php
    $searchsector = $_POST['Sector'];
    $searchlocation = $_POST['clocation'];
    $searchmin = $_POST['minsalary'];
    $searchmax = $_POST['maxsalary'];
    $searchtype = $_POST['Type'];
    ?>
    <?php
    mysql_select_db($database_steelbakercouk_473245_db1, $steelbakercouk_473245_db1);
    $query_jobsearch2 = "SELECT jobs.clocation, jobs.Ref_id, jobs.RefCode, jobs.jobtitle, jobs.blurb, jobs.Consultant, jobs.Salary, jobs.tlocation, jobs.Sector, jobs.Type FROM jobs WHERE jobs.Salary BETWEEN '$searchmin' AND '$searchmax' AND clocation = '$searchlocation' AND jobs.Sector  = '$searchsector' AND jobs.Type = '$searchtype'";
    $jobsearch2 = mysql_query($query_jobsearch2, $steelbakercouk_473245_db1) or die(mysql_error());
    $row_jobsearch2 = mysql_fetch_assoc($jobsearch2);
    $totalRows_jobsearch2 = mysql_num_rows($jobsearch2);
    ?>
    Please help... ... pulling my hair out!
    Thanks

    Ok.. I've tried all methods and still not getting anywhere..
    David... following the link you gave me... and to the letter.. apart from GetSQLValueString()which does not seem to exist.
    All it does is return all the records (as per the basic recordset)
    Heres the code.... please please tell me where I am going wrong.... downloaded your book Foundation PHP but struggaling.,
    <?php require_once('Connections/steelbakercouk_473245_db1.php'); ?>
    <?php
    $searchsector = $_POST['Sector'];
    $searchlocation = $_POST['clocation'];
    $searchmin = $_POST['minsalary'];
    $searchmax = $_POST['maxsalary'];
    $searchtype = $_POST['Type'];
    $any = $_POST['any'];
    ?>
    <?php
    $currentPage = $_SERVER["PHP_SELF"];
    mysql_select_db($database_steelbakercouk_473245_db1, $steelbakercouk_473245_db1);
    $expected = array('Sector' => 'text',
                      'clocation'         => 'text',
                      'minsalary'          => 'int',
                      'maxsalary'      => 'int');
    $query_jobsearch2 = "SELECT jobs.clocation, jobs.Ref_id, jobs.RefCode, jobs.jobtitle, jobs.blurb, jobs.Consultant, jobs.Salary, jobs.tlocation, jobs.Sector, jobs.Type FROM jobs";
    $where = false;
    // Loop through the associatiave array of expected search values
    foreach ($expected as $var => $type) {
      if (isset($_GET[$var])) {
        $value = trim(urldecode($_GET[$var]));
        if (!empty($value)) {
          // Check if the value begins with > or <
          // If so, use it as the operator, and extract the value
          if ($value[0] == '>' || $value[0] == '<') {
            $operator = $value[0];
            $value = ltrim(substr($value, 1));
          } elseif (strtolower($type) != 'like') {
            $operator = '=';
          // Check if the WHERE clause has been added yet
          if ($where) {
            $query_search .= ' AND ';
          } else {
            $query_search .= ' WHERE ';
            $where = true;
          // Build the SQL query using the right operator and data type
          $type = strtolower($type);
          switch($type) {
            case 'like':
              $query_search .= "`$var` LIKE " . GetSQLValueString('%' .
    $value . '%', "text");
              break;
            case 'int':
            case 'double':
            case 'date':
              $query_search .= "`$var` $operator " .
    GetSQLValueString($value, "$type");
              break;
            default:
            $query_search .= "`$var` = " . GetSQLValueString($value,
    "$type");
    $jobsearch2 = mysql_query($query_jobsearch2, $steelbakercouk_473245_db1) or die(mysql_error());
    $row_jobsearch2 = mysql_fetch_assoc($jobsearch2);
    $totalRows_jobsearch2 = mysql_num_rows($jobsearch2);
    $queryString_jobsearch2 = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_jobsearch2") == false &&
            stristr($param, "totalRows_jobsearch2") == false) {
          array_push($newParams, $param);
      if (count($newParams) != 0) {
        $queryString_jobsearch2 = "&" . htmlentities(implode("&", $newParams));
    $queryString_jobsearch2 = sprintf("&totalRows_jobsearch2=%d%s", $totalRows_jobsearch2, $queryString_jobsearch2);
    ?>

  • Can you not create nested rules in smart playlists in 11.1.3?

    I tried to create a nested rule for a smart playlist today, and found the ellipsis (which you click to add a nesting rule) is no longer there.
    Advice, please?

    Found the answer in another thread:
    Press the option key when editing the rule, and the + turns to the ...
    This allows you to add "all" and "any" rules.

  • ITunes 11.1.2 and iOS 7.0.3 Smart Playlists not working

    I am unable to get a smart playlist of mine to update on my iPhone 4s. The smart playlist is updated on my iMac and the items in it are copied across to my 4s but the playlist on my 4s is not getting updated. This just started 2 days ago. When I sync the same smart playlist to an old iPod Touch 3g running iOS 4.3.3 it is copied across fine and all works. The items in the playlist are all podcasts and up to a couple of days ago were copying across fine (and the older items are still there in the playlist on my 4s).

    Hello gortdromagh,
    Thank you for the details of the issue you are experiencing when syncing your playlist to your iPhone.  For an issue like this, I recommend resyncing the music to your iPhone.
    If you are syncing automatically, resync content to the iPhone by unchecking "Sync Music" and click "Apply,"  then check "Sync Music" and click "Apply" again.
    You can find the syncing steps in the following article:
    iTunes 11 for Mac: Set up syncing for iPod, iPhone, or iPad
    http://support.apple.com/kb/PH12113
    Thank you for posting in the Apple Support Communities.
    Best,
    Sheila M.

  • Bug: iOS 5 and iTunes 10.5 podcast smart playlist sort order and how to fix.

    There seems to be a bug in iOS 5 and iTunes 10.5 involving the sort order of a smart playlist of podcasts. I created such a playlist and sorted by release date on iTunes but I noticed it had a different sort order on the iPod Touch.
    After playing around with it a bit I found that the only way to preserve the sort order that I have in iTunes on the iPod Touch is to uncheck "Live Updating" in the smart playlist.

    Confirming this incredibly annoying bug.  Basic list sorting not working... real bottom shelf work apple.
    workaround update:  limit to must be turned on, set it to an absurdly high number if you don't want to actually limit the playlist, then one of the sortby options in that submenu will work.   The live update checkbox is irrelevant from experimentation. 
    This workaround does NOT fix the fundamental problem: sort order from itunes in smart playlists is not being synced and preserved in ios5 devices.
    This is the latest in a long string of debacles which is making me seriously consider swapping to debian stable. (snow leopard to lion was a severe downgrade in performance for anyone doing heavy multitasking.. scheduling is FUBAR... when a command option escape beachballs on a brand new core 17 machine, your OS has serious problems with nice levels)

  • Why can't I use any of my smart playlist on my iphone 4.

    I have had the hardest time to get any of my podcast that I manually set up in itunes to work.  None of my smart playlist work either.   Itunes shows they are on the phone but they will not play.  It seems as soons as apple introduced the podcast app everything started having issues regarding smart playlist.
    Any Ideas?

    Thank you for letting us know you resolved the problem.
    There is a help article that covers checking your hosts file here http://helpx.adobe.com/content/help/en/x-productkb/policy-pricing/activation-network-issue s.html.

  • -Match and $Matches[0] in a single if?

    This bit of code seems to be working intermittently for me, and I can't nail down what the problem is.
    if (($Places[-1] -match "([0-9])") -and ([bool]($Matches[0] -as [int]))) {
    some stuff
    If I make it two different if's it always works, but for the life of me I don't know why this -and version isn't working all the time. I may also be testing excessive conditions, as there really should never be a decimal number there to find, but it seems
    like this should still work all the time, given a single one or two digit number to be found in the string.
    Thoughts?
    Gordon

    David,
    I'll have to change my code back to get the exact error, but it seemed as if Matches wasn't populated until the first if was complete, so even when the match was an integer it only worked with something like this.
    if ($Places[-1] -match "([0-9])") {
       if ([bool]($Matches[0] -as [int])) {
          some stuff
    What is odd is that this seemed to work even when 0 was the single numeral.
    That said, it would seem I should be using (\d{1,2}) to catch everything between 0 & 99. And, honestly, there really should be no chance of anything but integers there, so I can probably dispense with the Int check anyway. Will run with that and
    see if any trouble crops up in beta testing. ;)
    Thanks (again!),
    Gordon

  • ITunes Match/Smart Playlists/Holiday Music

    Prior to iTunes Match, I use to use a "Smart Playlist" for my Holiday songs.  I would check them all and sync my iPhone to add them and, afte the Holildays, I would uncheck all the songs and re-sync my iPhone.  So, I only need to hear the songs during the time I want them.  I signed up for iTunes March and can't figure out a way to load the songs for the Holidays or -- more importantly -- unload the songs now that the Holidays are over.  (I am officially sick of hearing the songs.)  The song list is about 250 songs.     Is there way to replicate this "seasonality" that I use to be able to accomplish with my Smart Playlist in iTunes Match?

    UPDATE: so i was looking through some more, and here's another issue: I bought James Blunts album many many years ago. If I look at the "matched" playlist it shows "Goodbye My Lover" which is track 4/11, the remaining 10 tracks are in the "purchased" playlist. Checking the info on "Goodbye My Lover" show that it is "Purchased AAC audio file"
    I've also bought the AC/DC box set from iTunes, and some of those tracks are showing in the "uploaded" playlist!
    In "View Options" i enabled iCloud status and it's just all over the place!  Music i've purchased (and subsequently added to iTunes from apple support allowing me to redownload purchases) are shown as "Uploaded" or "Matched", some songs from albums (imported) are matched and others uploaded. Parts of box sets are "uploaded", others are "matched" and others "purchased"...
    what the?! I'm just confused! I'd like to use the option to upgrade my songs to the best quality (for my CD imports) and thought these playlists would help (actually a single button - "Upgrade" would be nice!) but they don't appear to be too accurate

  • How can I get my smart playlists on iTunes match to update automatically on my iPhone?

    I've been trying to figure out how to have my smart playlist in iTunes update on my iPhone automatically via iTunes Match, but everytime I create a smart playlist it shows up on my iPhone but it contains every single song in my library rather than just the ones that are supposed to be in the playlist.

    Experienced same situation with my iPhone4.  Just started using the cloud last week for my music library.
    Solution:  Click "Update iTunes Match" using iTunes on my MacBook Pro.  A minute or two later all of my playlissts appeared on my iPhone.  Hope this is helpful

  • Smart Playlist Creation Question - Rule Parameters Issue

    I want to have newly imported songs go automatically into a playlist (Recently Added), from which I can move them into a playlist of their own. I then want to be able to CLEAR the Recently Added playlist so that I can then import a SECOND group of songs which will automatically go into the Recently Added playlist, where they will be the ONLY songs there because the first group of songs will have been CLEARED.
    I inadvertantly deleted my Recently Added playlist, so that is not available to me - I have to, in effect, create my own Recently Added playlist.
    The problem I am having has to do with the Smart Playlist Rule Parameters needed to accomplish what I am trying to do. I have been able to set up a smart playlist that receives newly imported songs automatically. However, I seem to be unable to CLEAR the songs from the smart playlist to make way for a SECOND group of newly imported songs.
    I thought I could get the job done by simply deleting the entire Smart Playlist that contained the first group of songs, and then creating a new Smart Playlist to receive the second group. You can do that - but the problem is that the minimum time you are allowed to assign is one day. This means that when the second group of songs goes into the second smart playlist, it will also "grab up" and include the FIRST group of songs, assuming that the groups of songs are all being imported on the same day. I don't want to limit myself to importing only one group of songs per 24-hour period.
    (When I import groups of songs, I import them in very, very large groups, which is why I want to be able to deal with them in individual groups, rather than having to sort through the larger, general Library of tunes in order to put them into their own playlists.)
    It seems to me the answer lies in being able to set up a Rules Parameter that shortens the time involved from one day to something like 15 minutes or so. I don't know how to do that, even assuming that it can be done.
    Or, perhaps, someone might have another suggestion that would help me accomplish my goal here.
    Any and all thoughts will be much appreciated!

    ed2345 wrote:
    You can use playlist membership as a criterion in a Smart Playlist.
    So if the list you are moving them to is "SecondPlaylist" (or whatever you wish to call it) then add a rule to your custom-tailored Recently Added that states "Playlist" "is not" "SecondPlaylist."
    Not sure I am getting this. You understand that I am IMPORTING new files into iTunes - I am not moving already imported files into a playlist.
    I can create a smart playlist with a Rule of: Playlist/is not/recently added (where "recently added" is the playlist I previously used to set aside the last group of songs imported into the music library). But when I click on OK to set it up, then I have to name it. And when I give it a name ("current load," for example) and confirm the name, suddenly, "current load" is filled with the last group of imported files. Don't ask me why - but that's what happened.
    Any other thoughts? Anyone?

  • IOS8 and Smart Playlist Handling

    Smart Playlist syncing with iPhone IOS8 hasn't solved the problem.
    The trick I have used on the previous IOS versions was to uncheck the "live update"
    on the ITunes on my Mac.  Doing that all my playlists showed up on the iPhone regardless
    the ratings for the songs.
    I was hoping IOS 8 would have solved the problem but I have tried it yesterday, again
    smart playlists checked with "live update" will not sync the playlist to iPhone, you only
    see the playlist title with empty songs, as soon as I have unchecked the "live update"
    everything works.
    Any comments pls

    I don't know if this helps, but I had a similar problem where certain playlists would not sync. I tried restarting and updating. I also tried un-syncing ALL the music and re-syncing. That didn't work either. The only thing that worked was deleting the playlist in question (it was a smart playlist), syncing, and then re-creating the smart playlist and re-syncing. Then that playlist magically appeared again. Hope that helps.

  • Smart playlists - genre and rating, two questions

    I can't figure out a way to create a smart playlist that includes Rock and Alternative songs but only Rock and Alternative songs rated 4 or 5 stars. I can easily create a playlist that includes one genre and is limited to a star rating and I know I can create the list I want by first limiting my playlist to 4 or 5 stars and then subtracting genres but my library includes 51 Genres!
    Actually, I might be willing to create a playlist by subtracting 49 genres if I could then duplicate the list so I can create the second playlist I want; 4 and 5 star World and Latino songs. So, question #2 is, is there any way to duplicate a playlist?
    TIA,
    Peter

    Oh, you got it!!! I'd never noticed "Playlist" as a parameter in the smart playlists! Suddenly all kinds of possibilities open up! It did work the way you suggested but I decided to take a different tack. I created a 4-5 star "rock" playlist and a 4-5 star "alternative" playlist and then created a third smart playlist that includes the first two playlists! Now I can just continue creating smart playlists that include only songs I rate 4-5 stars in all of my 51 genres and create composite playlists to my heart's content! OK, I wouldn't do that. Once I get over 25 genres, it'd be easier to go back to the subtraction method. ; )
    Thanks for your help Diane! You're brilliant!
    Peter
    Message was edited by: petemay

  • Smart playlists, grouping, and podcasts question

    Hi I listed to a lot of podcasts, and have them grouped using "Grouping" feature like Home, Money, Health, etc. I then have a smart playlists that have the following settings:
    Podcast is yes, playcount is 0, and grouping is 'Home' (or money or whatever)
    The problem I am having is when new podcasts are downloaded, they DO NOT inherit the grouping setting for that podcast!
    So every day, I have to go to each podcast, and reset the grouping to Home (or whatever it is) -
    How I permanently set the grouping for each episode to have the correct grouping?
    Thanks in advance,
    Ndimitru

    Oh, you got it!!! I'd never noticed "Playlist" as a parameter in the smart playlists! Suddenly all kinds of possibilities open up! It did work the way you suggested but I decided to take a different tack. I created a 4-5 star "rock" playlist and a 4-5 star "alternative" playlist and then created a third smart playlist that includes the first two playlists! Now I can just continue creating smart playlists that include only songs I rate 4-5 stars in all of my 51 genres and create composite playlists to my heart's content! OK, I wouldn't do that. Once I get over 25 genres, it'd be easier to go back to the subtraction method. ; )
    Thanks for your help Diane! You're brilliant!
    Peter
    Message was edited by: petemay

  • 3.1.3 update and smart playlist problem

    All the songs in the smart playlist are updated to the iphone, the playlist is shown where the iphone is listed under devices, but it is not listed under playlists on the phone. I've done a restore and sync (not from backup), edited the playlist and resync, deleted/recreated the smart playlist and resync. I've unchecked all playlists except just the one smart playlist and it just won't get the playlist name.

    I have just run into same issue after installing the 3.1.3 update. Multiple smart playlists no longer sync to the iphone 3G, with the exception of one. Beyond that, my issue is exactly as bredmond's original post.

  • I hit the delete key and the highlighted song on the playlist doesnt delete ??

    In I tunes I hit the delete key and the highlighted song does not delete.  I followed the exact steps from the manual ??????

    In my experience you can't delete songs from the library when you are starting from a smart playlist. If you delete songs from a manually created playlist, this deletes the song from that playlist view ONLY, and leaves the song in your library. If what you want to do is delete a song from your library altogether, the only way I know of is to do this from the library view.
    If you want to delete a song from a smart playlist, you can't do this directly. You need to either change the criteria for your smart playlist so that the offending song isn't selected any more, or else "uncheck" the song, and make sure that your smart playlist collects "checked songs only".
    One easy-ish way to exclude songs from your smart playlist might be to change the rating, and make sure that your smart playlist excludes all songs with that rating. However, watch out that you don't end up with a combination of rules that end up excluding all songs so that the playlist is empty, or else including too many songs so that too many items match the criteria.
    If I have not understood your problem correctly, please reply with more details. Thanks!

Maybe you are looking for

  • Creating a formula using a alphabetic drop down list?

    I am creating a work sheet using formulas and drop down list. I have one drop down list that has a list of name and the second list is a list of letter that correspond to those names. (ex: column "J" on line "4 - 29" there is the letter "A-Z" and the

  • TV@nywhere Duo in MEGA180

    Dear all, I'm using a Tv@nywhere Duo in a MEGA 180. I've installed everything according to the instructions, but get the error messages "Failed to initialize application. Program will be stopped now!" and "DTV card was not found" when I try to run th

  • Ledger detail and associated account. URGENT

    Ahsan/Navin, The question primarily revolves around dimension tables and incremental load. If we take out SCD1/2 out of the scene for now, could you please answer Yes or No for the below questions? Please it is kind of urgent as the client is really

  • Special Effects - Dallas Theme

    I am new to iMovie 09. I would like to create an opening clip for my home movies that looks like the opening of the Dallas TV show. Adding the clips and the music are the easy steps. How can I add the special effects of sliding the pictures and the t

  • Integrate IVI in TestStand

    Hi,    I've download form the website from Xantrex the LV drivers for those power supplies (I attach them). Is it possible to create an IVI driver for TestStand 3.1 with all those VIs? How can I manage it? Is ther some documentation on the web about