• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: itunes - can one do "tracks whose duration..."?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >itunes - can one do "tracks whose duration..."? (From: Charles Arthur <email@hidden>)

  • Prev by Date: Re: Call AppleScript from remote server. How?
  • Next by Date: Re: Lack of Applescript cgi support in Panther
  • Previous by thread: itunes - can one do "tracks whose duration..."?
  • Next by thread: Re: Lack of Applescript cgi support in Panther
  • Index(es):
    • Date
    • Thread