On Jul 18, 2005, at 12:49 PM, Glenn Sugden wrote: FWIW - I had the same problem trying to press the "OK" button in iTunes' (4.9) "Edit Smart Playlist" window... ...tried a billion different things.... ...finally had to call a QuicKeys macro to do the dirty work for me. ;-)
This seem *really* out of place for an *Apple* app (and one written using Carbon/Cocoa to boot). Shouldn't Carbon/Cocoa just do this by default, or is that expecting too much from our fourth-generation languages and frameworks?
For that matter, shouldn't I just be able to say something like
create smart playlist named "this" with all properties {file type is apple lossless, play count is greater than 5, album is not "Death Metal", artist is in group "favorites", limited to 20 songs}
Okay, maybe I'm stretching just a bit with the artist integration with AB, but the rest.. In a general grammar of something like:
create smart playlist named <string> with [any | all] properties {prop*}
prop : [ file type is [mp3 | aiff | acc | protected acc | apple lossless | ogg] | file size is <size> [in [bytes | kilobytes | megabytes | gigabytes]] | // 'in clause defaults to kilobytes' play count [is | is greater than | is less than] <number> | last played is [ [ [over | less than] <number> [hours | days | weeks | months] ago] | <date> ] | [artist | album | genre | etc.. ] is [ <string> | in group <string> ] ] ]
is: [is | is not]
and the 's' character is optional where a number is 1 or 0..
PS. Can scripting additions define there own grammars for commands with lex/yacc tables, or just work within the general syntax of AS (English dialect, which is now the only dialect)?
Jim |