Re: Durations of mp3 files?
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