Quicktime ThreeGPP

Hello all.

I am new to Apple scripting but as the tool seems to be very powerfull I am trying to write a script that would convert my MP3 files to 3GP files, having the possibility to select differents qualities:

AAC-LC Stereo 160 kbps 48 kHz
AAC-LC Stereo 32 kbps 16 kHz
AMR-NB Mono 12.2 kbps 8000 khZ

1st question: do I have to write 3 differents scripts, or on can do the job?

2nd question: the following piece of code does work, but I am not able to specify the specific output. What do I have to use instead of “using settings most recent settings”? maybe “using settings file_settings_1” ? but then I don’t know how to write the file for each settings.


tell application "QuickTime Player"
	activate
	close every movie without saving
	open file MyMp3
	if (can export movie 1 as ThreeGPP) is true then
		export movie 1 to file new_file as ThreeGPP using settings most recent settings
		close movie 1 saving no
	else
		error "This file could not be exported as a Three GPP."
	end if
end tell

Thanks a lot for your help.
best regards.

Hi,

I kind of skimmed through your post, but usually when people want to export a movie, it’s best to use a file specification. A file specification is a reference to a file that may not exist. The learned ones say that you do it it this way:

set my_fs to “path to some folder” & “the new file name” as file specification

Now, Apple has gone out of its way to add a new way to get a file specification. I’m laugh every time I think about that, but it’s an inside story with myself and the Apple people.

I forgot what your question was.

gl,