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.