Re: Unable to deal with audio file
Re: Unable to deal with audio file
- Subject: Re: Unable to deal with audio file
- From: Luther Fuller <email@hidden>
- Date: Mon, 3 Nov 2008 15:30:17 -0600
On Nov 3, 2008, at 2:09 PM, Emile SCHWARZ wrote:
the following script gives an error at the line <set AnAudioItem to
audio file AnAudioItem>
I couldn't make sense of anything about "audio" in the System Events
dictionary. If at first you don't succeed, quit. I did notice that
this is interesting. FWIW ...
tell application "Finder"
set fw to front window
set AnAudioItem to (item 1 of fw) as alias
if (name extension of AnAudioItem) is not "mp3" then return
quoted form of (POSIX path of AnAudioItem)
do shell script "mdls -name kMDItemAudioBitRate " & the result
-- or use this
-- do shell script "mdls " & the result -- shows you everything
log the result
end tell
_______________________________________________
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/archives/applescript-users
This email sent to email@hidden