Convert Music Files Without iTunes

I was wondering is it possible to convert music files to mp3 or even wma without using itunes. i simple want it to copy the file and convert it, but i do not want the new file added to itunes or the old one deleted

it needs to be able to convert AAC and possible AIFF to MP3/WMA

thank you

You can do it using QuickTime Pro. I don’t know of a free way to do it.

What don’t you like about scripting iTunes?

im willing to work with itunes as long as the script can not affect my library at all. if anyone knows a simple way to do that that would be great

You can do something like this. Convert the track, move the converted tracks file, and delete the track from iTunes. This does one but you can convert more than one depending on how you get your list of tracks.

tell application "iTunes"
	set some_track to first track of first library playlist
	set converted_tracks to (convert some_track)
	set first_track to item 1 of converted_tracks
	set track_location to location of first_track
end tell
tell application "Finder" to move track_location to desktop
tell application "iTunes"
	delete first_track
end tell

I’m not sure if they said the library playlist object is no longer used.


Just like the Full Screen trick with QuickTime, I wonder if you could script it to convert tracks without having a pro license. I can’t test this though all of my machines do have Pro.


I do not have a Pro license so if someone posts a script (as I wouldn’t know where to start) I’ll quite happily test to see if it works.

Okay can you give this a try then

set _file to choose file
set deskPath to path to desktop as Unicode text
tell application "Finder" to set {_name, _ext} to {name, name extension} of _file
set _newName to text 1 through -((count _ext) + 1) of _name & "aif"
tell application "QuickTime Player"
	open _file
	export front movie to (deskPath & _newName) as AIFF
	close front movie saving no
end tell

Just select any mp3 file when you run it.

It works. I do not have any mp3’s so I used a m4a and it exported an AIFF.

Excellent. It would appear then that using QT would be alternative solution for you LSS.

thanks the_james for checking =)

No problem, It is quite slow though.

my question about this is how does it know to convert it to an mp3 and not any other kind of file?

How does it know?

You have to preset iTunes’ preferences.

In QuickTime you can convert to wave without presets, but I don’t think it can convert to mp3.


Here’s a possible way of setting the encoder

-- the basic idea (didn't work for me)
tell application "iTunes"
   set {curEnc, current encoder} to {current encoder, "MP3"}
   -- do your converting...
   set current encoder to curEnc
end tell

the working script:

-- script to choose from available converters and set the converter back to what it was 
	tell application "iTunes"
		-- build list of available encoders
		set encoderNameList to {}
		repeat with thisEncoder in encoders
			copy thisEncoder's name to end of encoderNameList
		end repeat
		-- choose encoder from available encoders
		set myEncoder to choose from list encoderNameList
		if false is not myEncoder then
			-- Q:Is there a more elegant way to find the >>position<< of an item in a list?
			repeat with counter from 1 to count encoders
				if myEncoder = encoderNameList's item counter then exit repeat
			end repeat
			-- save & change encoder settings 
			set {curEnc, current encoder} to {current encoder, encoders's item counter}
			-- do your converting...
			-- leave encoder settings to what they were before we converted our tunes
			set current encoder to curEnc
		end if
	end tell
on error eMsg number eNum
	display dialog eMsg & " " & eNum giving up after 12
end try

Hi SwissalpS,

I forgot about current encoder. Thanks for bringing that up. It was the bit rate I was thinking about.