Re: itunes - can one do "tracks whose duration..."?
Re: itunes - can one do "tracks whose duration..."?
- Subject: Re: itunes - can one do "tracks whose duration..."?
- From: DizzyPenguin <email@hidden>
- Date: Fri, 9 Jul 2004 18:24:31 +0100
On 9 Jul 2004, at 17:24, Charles Arthur wrote:
>
A strange thing has happened with some tracks I've encoded: they end up
>
about an hour long, with the last however much (55+ minutes) being
>
silence.
>
>
Thought it would be good to get rid of such by searching for tracks
>
whose
>
duration (it's given in seconds) is, say, >660.
>
>
ITunes barfs on a script that says "get every track of playlist
>
"Library"
>
whose duration is greater than 660".
>
>
Doesn't barf on "get every track of playlist "Library" whose name
>
contains
>
"bb""
>
>
No whose duration? I'd really like not to have to do a loop through the
>
whole library, though I suppose it's the same thing. With 5,000+ songs
>
it'd
>
be a pain for just a handful of songs.
>
>
Yes, OK, I could just sort on song length. But letting a script do it
>
is so
>
much more fun.
This works for me:
set listOfTracks to (((file tracks of playlist "Library") whose
duration is greater than 660) as list)
DP
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.