• 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: Durations of mp3 files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Durations of mp3 files?


  • Subject: Re: Durations of mp3 files?
  • From: Mr Tea <email@hidden>
  • Date: Thu, 07 Dec 2006 22:20:33 +0000

Title: Re: Durations of mp3 files?
This from Steven D. Majewski - dated 7/12/06 9.09 pm:

> Looks like you can use System Events  QuickTime File Suite without  
> starting up Quicktime Player:

Cool. Here it is in droplet form:

on open theTracks
   set myTrackTimes to {}
    repeat with aTrack in theTracks
       tell application "System Events"
            set N to name of aTrack
           set {D, TS} to {duration, time scale} of QuickTime file (aTrack as string)
        end tell
        set theLength to round D / TS
       set {theMinutes, theSeconds} to {theLength div 60, theLength mod 60}
        set end of myTrackTimes to N & " - " & theMinutes & ":" & theSeconds & return
    end repeat
    display dialog myTrackTimes as string
end open

Nick
pp Mr Tea

--

Brew of the day: [ibid]


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

References: 
 >Re: Durations of mp3 files? (From: "Steven D. Majewski" <email@hidden>)

  • Prev by Date: Re: Getting started with XML?
  • Next by Date: Test
  • Previous by thread: Re: Durations of mp3 files?
  • Next by thread: Re: Durations of mp3 files?
  • Index(es):
    • Date
    • Thread